Documentation
¶
Overview ¶
Package apply provides the command to apply changes to the project.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ApplyCmd = &cobra.Command{ Use: "apply [--script <file>]", Example: ` contextvibes factory apply --script ./plan.json`, Args: cobra.NoArgs, RunE: func(cmd *cobra.Command, _ []string) error { presenter := ui.NewPresenter(cmd.OutOrStdout(), cmd.ErrOrStderr()) ctx := cmd.Context() scriptContent, _, err := readInput(scriptPath) if err != nil { presenter.Error("Failed to read input: %v", err) return err } if len(scriptContent) == 0 { presenter.Info("Input is empty. Nothing to apply.") return nil } if isJSON(scriptContent) { return handleJSONPlan(ctx, presenter, scriptContent) } return handleShellScript(ctx, presenter, scriptContent) }, }
ApplyCmd represents the apply command.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.