constellation/cli/internal/cmd/config.go

29 lines
627 B
Go
Raw Normal View History

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