Documentation
¶
Overview ¶
Package bootstrap provides the command for environment initialization.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BootstrapCmd = &cobra.Command{ Use: "bootstrap", Short: "Minimal installer for the ContextVibes CLI.", RunE: func(cmd *cobra.Command, _ []string) error { presenter := ui.NewPresenter(cmd.OutOrStdout(), cmd.ErrOrStderr()) ctx := cmd.Context() steps := []workflow.Step{ &workflow.ConfigurePathStep{ Presenter: presenter, AssumeYes: globals.AssumeYes, }, &workflow.InstallSelfStep{ ExecClient: globals.ExecClient, Ref: installRef, }, } runner := workflow.NewRunner(presenter, globals.AssumeYes) err := runner.Run(ctx, "ContextVibes Minimal Install", steps...) if err != nil { return fmt.Errorf("bootstrap failed: %w", err) } presenter.Newline() presenter.Success("ContextVibes is now installed!") presenter.Header("--- NEXT STEPS ---") presenter.Info("1. Refresh shell: source ~/.bashrc") presenter.Info("2. Setup tools: contextvibes factory tools") presenter.Info("3. Setup project: contextvibes factory scaffold idx") presenter.Newline() return nil }, }
BootstrapCmd represents the factory bootstrap command.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.