Skip to content

Commit 02c9091

Browse files
committed
swiftly: generate completion scripts
1 parent 72a5d20 commit 02c9091

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Formula/s/swiftly.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,11 @@ def install
4444
-Xswiftc -I#{HOMEBREW_PREFIX}/include
4545
-Xlinker -L#{HOMEBREW_PREFIX}/lib
4646
]
47+
ENV.prepend_path "LD_LIBRARY_PATH", Formula["libarchive"].opt_lib
4748
end
4849
system "swift", "build", *args
49-
5050
bin.install ".build/release/swiftly"
51+
generate_completions_from_executable(bin/"swiftly", "--generate-completion-script")
5152
end
5253

5354
test do

0 commit comments

Comments
 (0)