diff --git a/cmd/bootstrap/bootstrap.go b/cmd/bootstrap/bootstrap.go index bd711fcf1..8d8a907c4 100644 --- a/cmd/bootstrap/bootstrap.go +++ b/cmd/bootstrap/bootstrap.go @@ -2,7 +2,6 @@ package bootstrap import ( "fmt" - "io" "github.com/spf13/cobra" @@ -13,11 +12,12 @@ import ( const PluginSettingsID = "bootstrap" // NewBootstrapCommand creates a new command for bootstrapping airshipctl -func NewBootstrapCommand(out io.Writer, rootSettings *environment.AirshipCTLSettings) *cobra.Command { +func NewBootstrapCommand(rootSettings *environment.AirshipCTLSettings) *cobra.Command { bootstrapRootCmd := &cobra.Command{ Use: "bootstrap", Short: "bootstraps airshipctl", Run: func(cmd *cobra.Command, args []string) { + out := cmd.OutOrStdout() fmt.Fprintf(out, "Under construction\n") }, } diff --git a/cmd/root.go b/cmd/root.go index 0a15640c3..1ad342d19 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -39,6 +39,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(settings)) - cmd.AddCommand(bootstrap.NewBootstrapCommand(cmd.OutOrStdout(), settings)) + cmd.AddCommand(bootstrap.NewBootstrapCommand(settings)) return cmd }