mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-02-25 17:21:24 -05:00
cli: adapt "upgrade check" reference to conventions
This commit is contained in:
parent
77bd537fb4
commit
a076587956
@ -47,7 +47,7 @@ func NewRootCmd() *cobra.Command {
|
|||||||
must(rootCmd.MarkPersistentFlagFilename("config", "yaml"))
|
must(rootCmd.MarkPersistentFlagFilename("config", "yaml"))
|
||||||
|
|
||||||
rootCmd.PersistentFlags().Bool("debug", false, "enable debug logging")
|
rootCmd.PersistentFlags().Bool("debug", false, "enable debug logging")
|
||||||
rootCmd.PersistentFlags().Bool("force", false, "disables version validation errors - might result in corrupted clusters")
|
rootCmd.PersistentFlags().Bool("force", false, "disable version compatibility checks - might result in corrupted clusters")
|
||||||
|
|
||||||
rootCmd.AddCommand(cmd.NewConfigCmd())
|
rootCmd.AddCommand(cmd.NewConfigCmd())
|
||||||
rootCmd.AddCommand(cmd.NewCreateCmd())
|
rootCmd.AddCommand(cmd.NewCreateCmd())
|
||||||
|
@ -39,15 +39,15 @@ import (
|
|||||||
func newUpgradeCheckCmd() *cobra.Command {
|
func newUpgradeCheckCmd() *cobra.Command {
|
||||||
cmd := &cobra.Command{
|
cmd := &cobra.Command{
|
||||||
Use: "check",
|
Use: "check",
|
||||||
Short: "Check for possible upgrades.",
|
Short: "Check for possible upgrades",
|
||||||
Long: "Check which upgrades can be applied to your Constellation Cluster.",
|
Long: "Check which upgrades can be applied to your Constellation Cluster.",
|
||||||
Args: cobra.NoArgs,
|
Args: cobra.NoArgs,
|
||||||
RunE: runUpgradeCheck,
|
RunE: runUpgradeCheck,
|
||||||
}
|
}
|
||||||
|
|
||||||
cmd.Flags().BoolP("write-config", "w", false, "Update the specified config file with the suggested versions")
|
cmd.Flags().BoolP("write-config", "w", false, "update the specified config file with the suggested versions")
|
||||||
cmd.Flags().String("ref", versionsapi.ReleaseRef, "Specify the reference used when querying the versionsapi for new versions.")
|
cmd.Flags().String("ref", versionsapi.ReleaseRef, "the reference to use for querying new versions")
|
||||||
cmd.Flags().String("stream", "stable", "Specify the stream used when querying the versionsapi for new versions.")
|
cmd.Flags().String("stream", "stable", "the stream to use for querying new versions")
|
||||||
|
|
||||||
return cmd
|
return cmd
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user