Documentation
¶
Overview ¶
cmd/factory/apply/apply.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ApplyCmd = &cobra.Command{ Use: "apply [--script <file>]", Example: ` contextvibes factory apply --script ./plan.json`, RunE: func(cmd *cobra.Command, args []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.