scaffold

package
v0.7.0-alpha.2 Latest Latest
Warning

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

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

Documentation

Overview

Package scaffold provides the command to generate infrastructure configuration.

Index

Constants

This section is empty.

Variables

View Source
var ScaffoldCmd = &cobra.Command{
	Use:   "scaffold [target]",
	Short: "Scaffolds infrastructure (e.g., idx, firebase).",
	Example: `  contextvibes factory scaffold idx
  contextvibes factory scaffold firebase`,
	Args: cobra.ExactArgs(1),
	RunE: func(cmd *cobra.Command, args []string) error {
		presenter := ui.NewPresenter(cmd.OutOrStdout(), cmd.ErrOrStderr())
		ctx := cmd.Context()
		target := args[0]

		runner := workflow.NewRunner(presenter, globals.AssumeYes)

		switch target {
		case "idx":
			return runner.Run(
				ctx,
				"Scaffolding IDX",
				&workflow.ScaffoldIDXStep{
					Presenter: presenter,
					AssumeYes: globals.AssumeYes,
				},
			)
		case "firebase":
			return runner.Run(
				ctx,
				"Scaffolding Firebase",
				&workflow.ScaffoldFirebaseStep{
					ExecClient: globals.ExecClient,
					Presenter:  presenter,
				},
			)
		default:

			return fmt.Errorf("unsupported scaffold target: %s (supported: idx, firebase)", target)
		}
	},
}

ScaffoldCmd represents the scaffold 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