2022-09-05 09:06:08 +02:00
|
|
|
/*
|
|
|
|
Copyright (c) Edgeless Systems GmbH
|
|
|
|
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
|
|
|
|
2022-05-12 15:14:52 +02:00
|
|
|
package cmd
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
)
|
|
|
|
|
2022-11-09 15:57:54 +01:00
|
|
|
// NewConfigCmd creates a new config parent command. Config needs another
|
|
|
|
// verb, and does nothing on its own.
|
2022-06-08 08:14:28 +02:00
|
|
|
func NewConfigCmd() *cobra.Command {
|
2022-05-12 15:14:52 +02:00
|
|
|
cmd := &cobra.Command{
|
|
|
|
Use: "config",
|
2022-05-18 19:01:11 +02:00
|
|
|
Short: "Work with the Constellation configuration file",
|
2022-09-11 16:24:15 +02:00
|
|
|
Long: "Work with the Constellation configuration file.",
|
2022-05-12 15:14:52 +02:00
|
|
|
Args: cobra.ExactArgs(0),
|
|
|
|
}
|
|
|
|
|
|
|
|
cmd.AddCommand(newConfigGenerateCmd())
|
2022-08-01 09:37:05 +02:00
|
|
|
cmd.AddCommand(newConfigFetchMeasurementsCmd())
|
2022-10-21 12:24:18 +02:00
|
|
|
cmd.AddCommand(newConfigInstanceTypesCmd())
|
2023-02-22 09:52:47 +01:00
|
|
|
cmd.AddCommand(newConfigKubernetesVersionsCmd())
|
2023-05-03 11:11:53 +02:00
|
|
|
cmd.AddCommand(newConfigMigrateCmd())
|
2022-05-12 15:14:52 +02:00
|
|
|
|
|
|
|
return cmd
|
|
|
|
}
|