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",
|
|
|
|
Short: "Plan and perform an upgrade of a Constellation cluster",
|
|
|
|
Long: "Plan and perform an upgrade of a Constellation cluster.",
|
|
|
|
Args: cobra.ExactArgs(0),
|
|
|
|
}
|
|
|
|
|
|
|
|
cmd.AddCommand(newUpgradeExecuteCmd())
|
2022-08-31 05:59:07 -04:00
|
|
|
cmd.AddCommand(newUpgradePlanCmd())
|
2022-08-29 10:49:44 -04:00
|
|
|
|
|
|
|
return cmd
|
|
|
|
}
|