func NewFileCmd() *cobra.Command {
	cmd := &cobra.Command{
		Use:     "file [hash]...",
		Short:   "Get information about files",
		Long:    fileCmdHelp,
		Example: fileCmdExample,
		Args:    cobra.MinimumNArgs(1),
		RunE: func(cmd *cobra.Command, args []string) error {
			re, _ := regexp.Compile("[[:xdigit:]]{64}|[[:xdigit:]]{40}|[[:xdigit:]]{32}")
			p, err := NewPrinter(cmd)
			if err != nil {
				return err
			}
			return p.GetAndPrintObjects(
				"files/%s",
				utils.StringReaderFromCmdArgs(args),
				re)
		},
	}
	addRelationshipCmds(cmd, "files", "file", "[hash]")
	addThreadsFlag(cmd.Flags())
	addIncludeExcludeFlags(cmd.Flags())
	addIDOnlyFlag(cmd.Flags())
	return cmd
}
NewFileCmd returns a new instance of the 'file' command.
package cmd
import (
	"github.com/VirusTotal/vt-cli/utils"
	"regexp"
	"github.com/spf13/cobra"
)
var fileCmdHelp = `Get information about one or more files.
This command receives one or more hashes (SHA-256, SHA-1 or MD5) and returns
information about the corresponding files. The information for each file appears
in the same order as the hashes are passed to the command.
If the command receives a single hypen (-) the hashes are read from the standard
input, one per line.
`
var fileCmdExample = `  vt file 8739c76e681f900923b900c9df0ef75cf421d39cabb54650c4b9ad19b6a76d85
  vt file 76cdb2bad9582d23c1f6f4d868218d6c
  vt file 76cdb2bad9582d23c1f6f4d868218d6c 44d88612fea8a8f36de82e1278abb02f
  cat list_of_hashes | vt file -`