Skip to content

Commit b3cd718

Browse files
Promote aitools from experimental to top-level command
The aitools command is feature-complete after the 5-PR series (#4810-#4814) that added state tracking, install/update/uninstall/list/version commands, and project scope support. Move it to a top-level `databricks aitools` command so it is discoverable without knowing the `experimental` prefix. The old `databricks experimental aitools` path is preserved as a hidden deprecated alias for backward compatibility. Co-authored-by: Isaac
1 parent b6c6a56 commit b3cd718

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

cmd/cmd.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"strings"
66

77
"github.com/databricks/cli/cmd/psql"
8+
aitoolscmd "github.com/databricks/cli/experimental/aitools/cmd"
89
ssh "github.com/databricks/cli/experimental/ssh/cmd"
910

1011
"github.com/databricks/cli/cmd/account"
@@ -93,6 +94,7 @@ func New(ctx context.Context) *cobra.Command {
9394
}
9495

9596
// Add other subcommands.
97+
cli.AddCommand(aitoolscmd.NewAitoolsCmd())
9698
cli.AddCommand(api.New())
9799
cli.AddCommand(auth.New())
98100
cli.AddCommand(completion.New())

cmd/experimental/experimental.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@ These commands provide early access to new features that are still under
2020
development. They may change or be removed in future versions without notice.`,
2121
}
2222

23-
cmd.AddCommand(aitoolscmd.NewAitoolsCmd())
23+
// Keep aitools under experimental as a hidden backward-compatibility alias.
24+
// The primary command is now registered at the top level.
25+
aitoolsAlias := aitoolscmd.NewAitoolsCmd()
26+
aitoolsAlias.Hidden = true
27+
aitoolsAlias.Deprecated = "use 'databricks aitools' instead"
28+
cmd.AddCommand(aitoolsAlias)
2429

2530
return cmd
2631
}

experimental/aitools/cmd/aitools.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@ import (
66

77
func NewAitoolsCmd() *cobra.Command {
88
cmd := &cobra.Command{
9-
Use: "aitools",
10-
Hidden: true,
11-
Short: "Databricks AI Tools for coding agents",
9+
Use: "aitools",
10+
Short: "Databricks AI Tools for coding agents",
1211
Long: `Manage Databricks AI Tools.
1312
1413
Provides commands to:

0 commit comments

Comments
 (0)