constellation/cli/internal/cmd/config.go

20 lines
388 B
Go
Raw Normal View History

package cmd
import (
"github.com/spf13/cobra"
)
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",
Long: "Generate a configuration file for Constellation.",
Args: cobra.ExactArgs(0),
}
cmd.AddCommand(newConfigGenerateCmd())
cmd.AddCommand(newConfigFetchMeasurementsCmd())
return cmd
}