cli: fix command order and minor wording tweaks in config cmd

This commit is contained in:
Thomas Tendyck 2022-05-24 11:56:40 +02:00 committed by Thomas Tendyck
parent 88ec7397c9
commit 9f0c751f1b
4 changed files with 6 additions and 4 deletions

View file

@ -30,16 +30,16 @@ func NewRootCmd() *cobra.Command {
// Set output of cmd.Print to stdout. (By default, it's stderr.)
rootCmd.SetOut(os.Stdout)
rootCmd.PersistentFlags().String("config", constants.ConfigFilename, "use settings from a config")
rootCmd.PersistentFlags().String("config", constants.ConfigFilename, "path to the configuration file")
must(rootCmd.MarkPersistentFlagFilename("config", "json"))
rootCmd.AddCommand(newConfigCmd())
rootCmd.AddCommand(newCreateCmd())
rootCmd.AddCommand(newInitCmd())
rootCmd.AddCommand(newVerifyCmd())
rootCmd.AddCommand(newRecoverCmd())
rootCmd.AddCommand(newTerminateCmd())
rootCmd.AddCommand(newVersionCmd())
rootCmd.AddCommand(newConfigCmd())
return rootCmd
}