Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "filetest", Short: "Runs tests against files/file system", Run: func(cmd *cobra.Command, args []string) { err := Run(configPath) if err != nil { color.Red(err.Error()) os.Exit(-1) } if len(errs) > 0 { color.Red("There were %d test failures:\n", len(errs)) for _, e := range errs { color.Red("\t%s\n", e.Error()) } os.Exit(-1) } color.Green("All of your tests have passed with flying colors!") }, }
RootCmd represents the base command when called without any subcommands
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.