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-02-09 09:54:12 -05:00
|
|
|
Short: "Find and apply upgrades to your Constellation cluster",
|
|
|
|
Long: "Find and apply 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())
|
2023-02-01 04:56:47 -05:00
|
|
|
cmd.AddCommand(newUpgradeApplyCmd())
|
2022-08-29 10:49:44 -04:00
|
|
|
return cmd
|
|
|
|
}
|