Documentation
¶
Overview ¶
cmd/factory/deploy/deploy.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DeployCmd = &cobra.Command{ Use: "deploy", Example: ` contextvibes factory deploy`, Args: cobra.NoArgs, RunE: func(cmd *cobra.Command, args []string) error { presenter := ui.NewPresenter(cmd.OutOrStdout(), cmd.ErrOrStderr()) ctx := cmd.Context() cwd, err := os.Getwd() if err != nil { return err } projType, err := project.Detect(cwd) if err != nil { return err } switch projType { case project.Terraform: return executeTerraformDeploy( ctx, presenter, globals.ExecClient, cwd, globals.AssumeYes, ) case project.Pulumi: return executePulumiDeploy(ctx, presenter, globals.ExecClient, cwd, globals.AssumeYes) default: presenter.Info("Deploy command is not applicable for this project type.") return nil } }, }
DeployCmd represents the deploy command
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.