mirror of https://github.com/databricks/cli.git
Tweak command groups in CLI help (#1092)
## Changes This tweaks the help output shown when using `databricks help`: * make`jobs` appears under `Workflows` (as done in baseline OpenAPI). * move `bundle` and `sync` under a new group called `Developer Tools` (similar to what we have in docs) * minor wording changes
This commit is contained in:
parent
3b6681c301
commit
206b1bf198
|
@ -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)
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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{
|
||||
|
|
|
@ -18,7 +18,7 @@ func Groups() []cobra.Group {
|
|||
},
|
||||
{
|
||||
ID: "jobs",
|
||||
Title: "Jobs",
|
||||
Title: "Workflows",
|
||||
},
|
||||
{
|
||||
ID: "pipelines",
|
||||
|
@ -52,5 +52,9 @@ func Groups() []cobra.Group {
|
|||
ID: "settings",
|
||||
Title: "Settings",
|
||||
},
|
||||
{
|
||||
ID: "development",
|
||||
Title: "Developer Tools",
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue