Add stub for bootstrap
This commit is contained in:
26
cmd/bootstrap/bootstrap.go
Normal file
26
cmd/bootstrap/bootstrap.go
Normal file
@@ -0,0 +1,26 @@
|
||||
package bootstrap
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/ian-howell/airshipctl/pkg/environment"
|
||||
)
|
||||
|
||||
// PluginSettingsID is used as a key in the root settings map of plugin settings
|
||||
const PluginSettingsID = "bootstrap"
|
||||
|
||||
// NewBootstrapCommand creates a new command for bootstrapping airshipctl
|
||||
func NewBootstrapCommand(out io.Writer, rootSettings *environment.AirshipCTLSettings) *cobra.Command {
|
||||
bootstrapRootCmd := &cobra.Command{
|
||||
Use: "bootstrap",
|
||||
Short: "bootstraps airshipctl",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
fmt.Fprintf(out, "Under construction\n")
|
||||
},
|
||||
}
|
||||
|
||||
return bootstrapRootCmd
|
||||
}
|
||||
@@ -5,8 +5,9 @@ import (
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/ian-howell/airshipctl/pkg/environment"
|
||||
"github.com/ian-howell/airshipctl/cmd/workflow"
|
||||
"github.com/ian-howell/airshipctl/cmd/bootstrap"
|
||||
"github.com/ian-howell/airshipctl/pkg/environment"
|
||||
)
|
||||
|
||||
// NewRootCmd creates the root `airshipctl` command. All other commands are
|
||||
@@ -29,5 +30,6 @@ func NewRootCmd(out io.Writer) (*cobra.Command, *environment.AirshipCTLSettings,
|
||||
// default commands to airshipctl
|
||||
func AddDefaultAirshipCTLCommands(cmd *cobra.Command, settings *environment.AirshipCTLSettings) *cobra.Command {
|
||||
cmd.AddCommand(workflow.NewWorkflowCommand(cmd.OutOrStdout(), settings))
|
||||
cmd.AddCommand(bootstrap.NewBootstrapCommand(cmd.OutOrStdout(), settings))
|
||||
return cmd
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user