airshipctl/cmd/config/config.go
Ian Howell 086b0661d2 Remove unused and commented out code
Change-Id: I92b325d7b78e26bbab21270ac9e52540a26c4ea1
2019-11-15 10:14:42 -06:00

23 lines
736 B
Go

package config
import (
"github.com/spf13/cobra"
"opendev.org/airship/airshipctl/pkg/environment"
)
// NewConfigCommand creates a command object for the airshipctl "config" , and adds all child commands to it.
func NewConfigCommand(rootSettings *environment.AirshipCTLSettings) *cobra.Command {
configRootCmd := &cobra.Command{
Use: "config",
DisableFlagsInUseLine: true,
Short: ("Modify airshipctl config files"),
Long: (`Modify airshipctl config files using subcommands
like "airshipctl config set-current-context my-context" `),
}
configRootCmd.AddCommand(NewCmdConfigSetCluster(rootSettings))
configRootCmd.AddCommand(NewCmdConfigGetCluster(rootSettings))
return configRootCmd
}