Skip to content

Add version flag to print version and exit - #394

Merged
pietern merged 2 commits into
mainfrom
version-flag
May 22, 2023
Merged

Add version flag to print version and exit#394
pietern merged 2 commits into
mainfrom
version-flag

Conversation

@pietern

@pieternpietern commented May 22, 2023

Copy link
Copy Markdown
Contributor

Changes

With this PR, all of the command below print version and exit:

$ databricks -v
Databricks CLI v0.100.1-dev+4d3fa76
$ databricks --version
Databricks CLI v0.100.1-dev+4d3fa76
$ databricks version Databricks CLI v0.100.1-dev+4d3fa76

Tests

Added integration test for each flag or command.

Comment threadcmd/root/root.go Outdated
@pietern
pietern requested a review from andrewnesterMay 22, 2023 18:46
nfx
nfx approved these changes May 22, 2023

@nfxnfx left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@pietern
pietern merged commit d86a1f0 into mainMay 22, 2023
@pietern
pietern deleted the version-flag branch May 22, 2023 18:55
@pieternpietern mentioned this pull request May 23, 2023
pietern added a commit that referenced this pull request May 23, 2023
## Changes
CLI:
* Sync: Gracefully handle broken notebook files
([#398](#398)).
* Add version flag to print version and exit
([#394](#394)).
* Pass temporary directory environment variables to subprocesses
([#395](#395)).
* Rename environment variables `BRICKS_` -> `DATABRICKS_`
([#393](#393)).
* Update to Go SDK v0.9.0
([#396](#396)).
denik pushed a commit that referenced this pull request May 20, 2026
## Changes
With this PR, all of the command below print version and exit:
```
$ databricks -v
Databricks CLI v0.100.1-dev+4d3fa76
$ databricks --version
Databricks CLI v0.100.1-dev+4d3fa76
$ databricks version Databricks CLI v0.100.1-dev+4d3fa76
```
## Tests
Added integration test for each flag or command.
denik pushed a commit that referenced this pull request May 20, 2026
## Changes
CLI:
* Sync: Gracefully handle broken notebook files
([#398](#398)).
* Add version flag to print version and exit
([#394](#394)).
* Pass temporary directory environment variables to subprocesses
([#395](#395)).
* Rename environment variables `BRICKS_` -> `DATABRICKS_`
([#393](#393)).
* Update to Go SDK v0.9.0
([#396](#396)).
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@pietern@nfx@andrewnester