blob: edcb250a485c4bed918c04268e21b93d21aed51d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
package cmd
import (
"github.com/spf13/cobra"
"os"
)
var rootCmd = &cobra.Command{
Use: "verifysetup",
}
func init() {
rootCmd.AddCommand(NewSetupCommand())
}
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)
}
}
|