mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-07-21 06:21:43 -04:00

find -name '*.go' -exec sed -i 's/SPDX-License-Identifier: AGPL-3.0-only/SPDX-License-Identifier: BUSL-1.1/' {} +
30 lines
711 B
Go
30 lines
711 B
Go
/*
|
|
Copyright (c) Edgeless Systems GmbH
|
|
|
|
SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
package cmd
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
// NewConfigCmd creates a new config parent command. Config needs another
|
|
// verb, and does nothing on its own.
|
|
func NewConfigCmd() *cobra.Command {
|
|
cmd := &cobra.Command{
|
|
Use: "config",
|
|
Short: "Work with the Constellation configuration file",
|
|
Long: "Work with the Constellation configuration file.",
|
|
Args: cobra.ExactArgs(0),
|
|
}
|
|
|
|
cmd.AddCommand(newConfigGenerateCmd())
|
|
cmd.AddCommand(newConfigFetchMeasurementsCmd())
|
|
cmd.AddCommand(newConfigInstanceTypesCmd())
|
|
cmd.AddCommand(newConfigKubernetesVersionsCmd())
|
|
cmd.AddCommand(newConfigMigrateCmd())
|
|
|
|
return cmd
|
|
}
|