Skip to content

Commit 00027cb

Browse files
authored
Hide --bind flag for generate command (#3840)
## Changes Hide --bind flag for generate command ## Tests Exisiting acceptance tests
1 parent 965b348 commit 00027cb

File tree

7 files changed

+4
-3
lines changed

7 files changed

+4
-3
lines changed

acceptance/bundle/help/bundle-generate-dashboard/output.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ Usage:
3636
databricks bundle generate dashboard [flags]
3737

3838
Flags:
39-
-b, --bind automatically bind the generated dashboard config to the existing dashboard
4039
-s, --dashboard-dir string directory to write the dashboard representation to (default "src")
4140
--existing-id string ID of the dashboard to generate configuration for
4241
--existing-path string workspace path of the dashboard to generate configuration for

acceptance/bundle/help/bundle-generate-job/output.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ Usage:
2828
databricks bundle generate job [flags]
2929

3030
Flags:
31-
-b, --bind automatically bind the generated resource to the existing resource
3231
-d, --config-dir string Dir path where the output config will be stored (default "resources")
3332
--existing-job-id int Job ID of the job to generate config for
3433
-f, --force Force overwrite existing files in the output directory

acceptance/bundle/help/bundle-generate-pipeline/output.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ Usage:
2828
databricks bundle generate pipeline [flags]
2929

3030
Flags:
31-
-b, --bind automatically bind the generated resource to the existing resource
3231
-d, --config-dir string Dir path where the output config will be stored (default "resources")
3332
--existing-pipeline-id string ID of the pipeline to generate config for
3433
-f, --force Force overwrite existing files in the output directory

cmd/bundle/generate/app.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ per target environment.`,
5959
cmd.Flags().StringVarP(&sourceDir, "source-dir", "s", "src/app", `Directory path where the app files will be stored`)
6060
cmd.Flags().BoolVarP(&force, "force", "f", false, `Force overwrite existing files in the output directory`)
6161
cmd.Flags().BoolVarP(&bind, "bind", "b", false, `automatically bind the generated app config to the existing app`)
62+
cmd.Flags().MarkHidden("bind")
6263

6364
cmd.RunE = func(cmd *cobra.Command, args []string) error {
6465
ctx := logdiag.InitContext(cmd.Context())

cmd/bundle/generate/dashboard.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,7 @@ bundle files automatically, useful during active dashboard development.`,
504504
cmd.Flags().BoolVarP(&d.force, "force", "f", false, `force overwrite existing files in the output directory`)
505505

506506
cmd.Flags().BoolVarP(&d.bind, "bind", "b", false, `automatically bind the generated dashboard config to the existing dashboard`)
507+
cmd.Flags().MarkHidden("bind")
507508

508509
// Exactly one of the lookup flags must be provided.
509510
cmd.MarkFlagsOneRequired(

cmd/bundle/generate/job.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ After generation, you can deploy this job to other targets using:
6363
cmd.Flags().StringVarP(&sourceDir, "source-dir", "s", "src", `Dir path where the downloaded files will be stored`)
6464
cmd.Flags().BoolVarP(&force, "force", "f", false, `Force overwrite existing files in the output directory`)
6565
cmd.Flags().BoolVarP(&bind, "bind", "b", false, `automatically bind the generated resource to the existing resource`)
66+
cmd.Flags().MarkHidden("bind")
6667

6768
cmd.RunE = func(cmd *cobra.Command, args []string) error {
6869
ctx := logdiag.InitContext(cmd.Context())

cmd/bundle/generate/pipeline.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ like catalogs, schemas, and compute configurations per target.`,
6262
cmd.Flags().StringVarP(&sourceDir, "source-dir", "s", "src", `Dir path where the downloaded files will be stored`)
6363
cmd.Flags().BoolVarP(&force, "force", "f", false, `Force overwrite existing files in the output directory`)
6464
cmd.Flags().BoolVarP(&bind, "bind", "b", false, `automatically bind the generated resource to the existing resource`)
65+
cmd.Flags().MarkHidden("bind")
6566

6667
cmd.RunE = func(cmd *cobra.Command, args []string) error {
6768
ctx := logdiag.InitContext(cmd.Context())

0 commit comments

Comments
 (0)