Skip to content

Commit

Permalink
qrtool: add shell completion support
Browse files Browse the repository at this point in the history
Signed-off-by: Rui Chen <[email protected]>
  • Loading branch information
chenrui333 committed Dec 19, 2024
1 parent 19f792d commit d74d0b6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Formula/q/qrtool.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ class Qrtool < Formula
def install
system "cargo", "install", *std_cargo_args

generate_completions_from_executable(bin/"qrtool", "--generate-completion")

outdir = Dir["target/release/build/qrtool-*/out"].first
man1.install Dir["#{outdir}/*.1"]
end
Expand Down

0 comments on commit d74d0b6

Please sign in to comment.