mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-02-27 10:21:37 -05:00

Implement config command & generate verb to write default configuration to file or stdout.
19 lines
346 B
Go
19 lines
346 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func newConfigCmd() *cobra.Command {
|
|
cmd := &cobra.Command{
|
|
Use: "config",
|
|
Short: "Work with Constellation configuration file",
|
|
Long: "Generate & manipulate configuration file for Constellation.",
|
|
Args: cobra.ExactArgs(0),
|
|
}
|
|
|
|
cmd.AddCommand(newConfigGenerateCmd())
|
|
|
|
return cmd
|
|
}
|