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.
Click to show internal directories.
Click to hide internal directories.