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

Add version flag to print version and exit #394

Merged
merged 2 commits into from
May 22, 2023
Merged

Add version flag to print version and exit #394

merged 2 commits into from
May 22, 2023

Conversation

pietern
Copy link
Contributor

@pietern pietern commented May 22, 2023

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.

cmd/root/root.go Outdated Show resolved Hide resolved
@pietern pietern requested a review from andrewnester May 22, 2023 18:46
Copy link
Contributor

@nfx nfx left a comment

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 main May 22, 2023
4 checks passed
@pietern pietern deleted the version-flag branch May 22, 2023 18:55
@pietern pietern 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)).
Sign up for free to 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.

None yet

3 participants