2022-09-05 09:06:08 +02:00
|
|
|
/*
|
|
|
|
Copyright (c) Edgeless Systems GmbH
|
|
|
|
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
|
|
|
|
2022-08-29 16:49:44 +02: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 15:54:12 +01:00
|
|
|
Short: "Find and apply upgrades to your Constellation cluster",
|
|
|
|
Long: "Find and apply upgrades to your Constellation cluster.",
|
2022-08-29 16:49:44 +02:00
|
|
|
Args: cobra.ExactArgs(0),
|
|
|
|
}
|
|
|
|
|
2023-01-31 12:12:19 +01:00
|
|
|
cmd.AddCommand(newUpgradeCheckCmd())
|
2023-02-01 10:56:47 +01:00
|
|
|
cmd.AddCommand(newUpgradeApplyCmd())
|
2022-08-29 16:49:44 +02:00
|
|
|
|
|
|
|
return cmd
|
|
|
|
}
|