2022-09-05 03:06:08 -04:00
|
|
|
/*
|
|
|
|
Copyright (c) Edgeless Systems GmbH
|
|
|
|
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
|
|
|
|
2022-08-29 10:49:44 -04:00
|
|
|
package cmd
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
)
|
|
|
|
|
|
|
|
// NewUpgradeCmd returns a new cobra.Command for the upgrade command.
|
|
|
|
func NewUpgradeCmd() *cobra.Command {
|
|
|
|
cmd := &cobra.Command{
|
|
|
|
Use: "upgrade",
|
2023-01-31 06:12:19 -05:00
|
|
|
Short: "Find and execute upgrades to your Constellation cluster",
|
|
|
|
Long: "Find and execute upgrades to your Constellation cluster.",
|
2022-08-29 10:49:44 -04:00
|
|
|
Args: cobra.ExactArgs(0),
|
|
|
|
}
|
|
|
|
|
2023-01-31 06:12:19 -05:00
|
|
|
cmd.AddCommand(newUpgradeCheckCmd())
|
2022-09-11 10:24:15 -04:00
|
|
|
cmd.AddCommand(newUpgradeExecuteCmd())
|
2022-08-29 10:49:44 -04:00
|
|
|
|
|
|
|
return cmd
|
|
|
|
}
|