bootstrap

package
v0.7.0-alpha.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2026 License: MIT Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL