2022-09-05 07:06:08 +00:00
|
|
|
/*
|
|
|
|
Copyright (c) Edgeless Systems GmbH
|
|
|
|
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
|
|
|
|
2022-05-12 13:14:52 +00:00
|
|
|
package cmd
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
)
|
|
|
|
|
2022-06-08 06:14:28 +00:00
|
|
|
func NewConfigCmd() *cobra.Command {
|
2022-05-12 13:14:52 +00:00
|
|
|
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.",
|
2022-05-12 13:14:52 +00:00
|
|
|
Args: cobra.ExactArgs(0),
|
|
|
|
}
|
|
|
|
|
|
|
|
cmd.AddCommand(newConfigGenerateCmd())
|
2022-08-01 07:37:05 +00:00
|
|
|
cmd.AddCommand(newConfigFetchMeasurementsCmd())
|
2022-10-21 10:24:18 +00:00
|
|
|
cmd.AddCommand(newConfigInstanceTypesCmd())
|
2022-05-12 13:14:52 +00:00
|
|
|
|
|
|
|
return cmd
|
|
|
|
}
|