Skip to content

Commit 7cd31e8

Browse files
committed
yutu: add shells completions
1 parent 590b41b commit 7cd31e8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Formula/y/yutu.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ def install
2727
-X #{mod}.Commit=#{Utils.git_short_head(length: 7)}
2828
-X #{mod}.CommitDate=#{time.iso8601}]
2929
system "go", "build", *std_go_args(ldflags:), "."
30+
31+
generate_completions_from_executable(bin/"yutu", "completion", shells: [:bash, :zsh, :fish, :pwsh])
3032
end
3133

3234
test do

0 commit comments

Comments
 (0)