cli: format UI strings as suggested by cobra

This commit is contained in:
Thomas Tendyck 2022-05-06 17:51:41 +02:00 committed by Thomas Tendyck
parent a879043f03
commit 19bd097864
7 changed files with 23 additions and 23 deletions

View file

@ -11,7 +11,7 @@ import (
var rootCmd = &cobra.Command{
Use: "constellation",
Short: "Set up your Constellation cluster.",
Short: "Set up your Constellation cluster",
Long: "Set up your Constellation cluster.",
SilenceUsage: true,
}
@ -54,7 +54,7 @@ func init() {
cobra.EnableCommandSorting = false
// Set output of cmd.Print to stdout. (By default, it's stderr.)
rootCmd.SetOut(os.Stdout)
rootCmd.PersistentFlags().String("dev-config", "", "Set this flag to create the Constellation cluster using settings from a development config.")
rootCmd.PersistentFlags().String("dev-config", "", "create the Constellation cluster using settings from a development config")
must(rootCmd.MarkPersistentFlagFilename("dev-config", "json"))
rootCmd.AddCommand(newCreateCmd())
rootCmd.AddCommand(newInitCmd())