Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tweak command groups in CLI help #1092

Merged
merged 2 commits into from
Dec 28, 2023
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
7 changes: 4 additions & 3 deletions cmd/bundle/bundle.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ import (

func New() *cobra.Command {
cmd := &cobra.Command{
Use: "bundle",
Short: "Databricks Asset Bundles",
Long: "Databricks Asset Bundles\n\nOnline documentation: https://docs.databricks.com/en/dev-tools/bundles",
Use: "bundle",
Short: "Databricks Asset Bundles let you express data/AI/analytics projects as code.",
Long: "Databricks Asset Bundles let you express data/AI/analytics projects as code.\n\nOnline documentation: https://docs.databricks.com/en/dev-tools/bundles",
GroupID: "development",
}

initVariableFlag(cmd)
Expand Down
7 changes: 4 additions & 3 deletions cmd/fs/fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ import (

func New() *cobra.Command {
cmd := &cobra.Command{
Use: "fs",
Short: "Filesystem related commands",
Long: `Commands to do DBFS operations.`,
Use: "fs",
Short: "Filesystem related commands",
Long: `Commands to do DBFS operations.`,
GroupID: "workspace",
}

cmd.AddCommand(
Expand Down
7 changes: 4 additions & 3 deletions cmd/sync/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,10 @@ func (f *syncFlags) syncOptionsFromArgs(cmd *cobra.Command, args []string) (*syn

func New() *cobra.Command {
cmd := &cobra.Command{
Use: "sync [flags] SRC DST",
Short: "Synchronize a local directory to a workspace directory",
Args: cobra.MaximumNArgs(2),
Use: "sync [flags] SRC DST",
Short: "Synchronize a local directory to a workspace directory",
Args: cobra.MaximumNArgs(2),
GroupID: "development",
}

f := syncFlags{
Expand Down
6 changes: 5 additions & 1 deletion cmd/workspace/groups.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func Groups() []cobra.Group {
},
{
ID: "jobs",
Title: "Jobs",
Title: "Workflows",
},
{
ID: "pipelines",
Expand Down Expand Up @@ -52,5 +52,9 @@ func Groups() []cobra.Group {
ID: "settings",
Title: "Settings",
},
{
ID: "development",
Title: "Developer Tools",
},
}
}