Skip to content

Commit ed68b68

Browse files
authored
homebrew: generate completion for the shell automatically on install (#135)
Signed-off-by: Ryan Cragun <me@ryan.ec>
1 parent f9717ae commit ed68b68

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

tools/homebrew/support/enos.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ class Enos < Formula
2727

2828
def install
2929
bin.install "enos"
30+
31+
generate_completions_from_executable(bin/"enos", "completion")
3032
end
3133

3234
test do

tools/homebrew/support/enos.rb.tmpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ class Enos < Formula
2727

2828
def install
2929
bin.install "enos"
30+
31+
generate_completions_from_executable(bin/"enos", "completion")
3032
end
3133

3234
test do

0 commit comments

Comments
 (0)