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 NEXT_CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

* Added `--limit` flag to all paginated list commands for client-side result capping ([#4984](https://github.com/databricks/cli/pull/4984)).
* Accept `yes` in addition to `y` for confirmation prompts, and show `[y/N]` to indicate that no is the default.
* Deprecated `auth env`. The command is hidden from help listings and prints a deprecation warning to stderr; it will be removed in a future release.

### Bundles
* Remove `experimental-jobs-as-code` template, superseded by `pydabs` ([#4999](https://github.com/databricks/cli/pull/4999)).
Expand Down
10 changes: 8 additions & 2 deletions cmd/auth/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,12 @@ func loadFromDatabricksCfg(ctx context.Context, cfg *config.Config) error {

func newEnvCommand() *cobra.Command {
cmd := &cobra.Command{
Use: "env",
Short: "Get env",
Use: "env",
Short: "Get env (deprecated)",
Hidden: true,
Long: `Get env.

Deprecated: this command will be removed in a future release.`,
Comment thread
simonfaltum marked this conversation as resolved.
}

var host string
Expand All @@ -103,6 +107,8 @@ func newEnvCommand() *cobra.Command {
cmd.Flags().StringVar(&profile, "profile", profile, "Profile to get auth env for")

cmd.RunE = func(cmd *cobra.Command, args []string) error {
fmt.Fprintln(cmd.ErrOrStderr(), "Warning: 'databricks auth env' is deprecated and will be removed in a future release.")
Comment thread
simonfaltum marked this conversation as resolved.

cfg := &config.Config{
Host: host,
Profile: profile,
Expand Down
Loading