2022-05-12 09:14:52 -04:00
|
|
|
package cmd
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
)
|
|
|
|
|
2022-06-08 02:14:28 -04:00
|
|
|
func NewConfigCmd() *cobra.Command {
|
2022-05-12 09:14:52 -04:00
|
|
|
cmd := &cobra.Command{
|
|
|
|
Use: "config",
|
2022-05-18 13:01:11 -04:00
|
|
|
Short: "Work with the Constellation configuration file",
|
2022-05-24 05:56:40 -04:00
|
|
|
Long: "Generate a configuration file for Constellation.",
|
2022-05-12 09:14:52 -04:00
|
|
|
Args: cobra.ExactArgs(0),
|
|
|
|
}
|
|
|
|
|
|
|
|
cmd.AddCommand(newConfigGenerateCmd())
|
2022-08-01 03:37:05 -04:00
|
|
|
cmd.AddCommand(newConfigFetchMeasurementsCmd())
|
2022-05-12 09:14:52 -04:00
|
|
|
|
|
|
|
return cmd
|
|
|
|
}
|