Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cmd/bundle/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ func newDeployCommand() *cobra.Command {
cmd := &cobra.Command{
Use: "deploy",
Short: "Deploy bundle",
Args: cobra.NoArgs,
PreRunE: utils.ConfigureBundleWithVariables,
}

Expand Down
6 changes: 3 additions & 3 deletions cmd/bundle/destroy.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ import (

func newDestroyCommand() *cobra.Command {
cmd := &cobra.Command{
Use: "destroy",
Short: "Destroy deployed bundle resources",

Use: "destroy",
Short: "Destroy deployed bundle resources",
Args: cobra.NoArgs,
PreRunE: utils.ConfigureBundleWithVariables,
}

Expand Down
5 changes: 2 additions & 3 deletions cmd/bundle/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ import (

func newRunCommand() *cobra.Command {
cmd := &cobra.Command{
Use: "run [flags] KEY",
Short: "Run a resource (e.g. a job or a pipeline)",

Use: "run [flags] KEY",
Short: "Run a resource (e.g. a job or a pipeline)",
Args: cobra.MaximumNArgs(1),
PreRunE: utils.ConfigureBundleWithVariables,
}
Expand Down
1 change: 1 addition & 0 deletions cmd/bundle/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ func newSchemaCommand() *cobra.Command {
cmd := &cobra.Command{
Use: "schema",
Short: "Generate JSON Schema for bundle configuration",
Args: cobra.NoArgs,
}

cmd.RunE = func(cmd *cobra.Command, args []string) error {
Expand Down
6 changes: 3 additions & 3 deletions cmd/bundle/summary.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ import (

func newSummaryCommand() *cobra.Command {
cmd := &cobra.Command{
Use: "summary",
Short: "Describe the bundle resources and their deployment states",

Use: "summary",
Short: "Describe the bundle resources and their deployment states",
Args: cobra.NoArgs,
PreRunE: utils.ConfigureBundleWithVariables,

// This command is currently intended for the Databricks VSCode extension only
Expand Down
6 changes: 3 additions & 3 deletions cmd/bundle/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (

func newValidateCommand() *cobra.Command {
cmd := &cobra.Command{
Use: "validate",
Short: "Validate configuration",

Use: "validate",
Short: "Validate configuration",
Args: cobra.NoArgs,
PreRunE: utils.ConfigureBundleWithVariables,
}

Expand Down