Skip to content

Commit

Permalink
Run "brew style" in the test action (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilia-db authored Dec 4, 2023
1 parent fd0e457 commit 13e92c8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ jobs:
- name: Install Homebrew Bundler RubyGems
run: brew install-bundler-gems

- name: Check the CLI formula
run: |
brew style databricks
- name: Install CLI
run: |
brew install databricks
Expand Down
20 changes: 11 additions & 9 deletions Formula/databricks.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
class Databricks < Formula
desc "Databricks"
desc "Command-line interface for the Databricks platform"
homepage "https://github.com/databricks/cli"

version "0.210.1"

download_prefix = "https://github.com/databricks/cli/releases/download"
Expand Down Expand Up @@ -37,19 +39,19 @@ def install
generate_completions_from_executable(bin/"databricks", "completion")
ohai "Installation complete! Check if 🧱 🧱 🧱 completions do work."
puts <<~EOS
To ensure Databricks <TAB> completion works in zsh, you can add the directory
$(brew --prefix)/share/zsh/site-functions to your $fpath. You can do this by
adding it to your ~/.zshrc file:
To ensure Databricks <TAB> completion works in zsh, you can add the directory
$(brew --prefix)/share/zsh/site-functions to your $fpath. You can do this by
adding it to your ~/.zshrc file:
echo fpath+=$(brew --prefix)/share/zsh/site-functions >> ~/.zshrc
echo fpath+=$(brew --prefix)/share/zsh/site-functions >> ~/.zshrc
Most likely you'll also have to rebuild the completion index:
Most likely you'll also have to rebuild the completion index:
echo 'autoload -Uz compinit && compinit' >> ~/.zshrc
echo 'autoload -Uz compinit && compinit' >> ~/.zshrc
... and open new terminal window.
... and open new terminal window.
See https://docs.brew.sh/Shell-Completion
See https://docs.brew.sh/Shell-Completion
EOS
end

Expand Down

0 comments on commit 13e92c8

Please sign in to comment.