diff options
Diffstat (limited to 'cmd/root.go')
-rw-r--r-- | cmd/root.go | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/cmd/root.go b/cmd/root.go deleted file mode 100644 index d212e4e..0000000 --- a/cmd/root.go +++ /dev/null @@ -1,22 +0,0 @@ -package cmd - -import ( - "github.com/spf13/cobra" - "os" -) - -var rootCmd = &cobra.Command{ - Use: "fsverify", -} - -func init() { - rootCmd.AddCommand(NewVerifyCommand()) -} - -func Execute() { - // cobra does not exit with a non-zero return code when failing - // solution from https://github.com/spf13/cobra/issues/221 - if err := rootCmd.Execute(); err != nil { - os.Exit(1) - } -} |