Skip to content

Commit

Permalink
⏪ Remove completion scripts temporarily
Browse files Browse the repository at this point in the history
This reverts commit 5d96fea.
  • Loading branch information
kevinkupski committed Jul 6, 2023
1 parent a70f081 commit 9a772c4
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions Formula/setops-cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,23 @@ def install
system "chmod 555 #{bin}/setops"

# install the completion scripts
# zsh_completions_temp = Tempfile.new("setops-manager-zsh-completions")
# zsh_completions_temp.write(Utils.safe_popen_read("#{bin}/setops", "completion", "zsh"))
# zsh_completions_temp.rewind
#
# zsh_completion.install zsh_completions_temp.path => "_setops"
#
# zsh_completions_temp.close
# zsh_completions_temp.unlink
#
# bash_completions_temp = Tempfile.new("setops-manager-zsh-completions")
# bash_completions_temp.write(Utils.safe_popen_read("#{bin}/setops", "completion", "bash"))
# bash_completions_temp.rewind
#
# bash_completion.install bash_completions_temp.path => "setops"
#
# bash_completions_temp.close
# bash_completions_temp.unlink
zsh_completions_temp = Tempfile.new("setops-manager-zsh-completions")
zsh_completions_temp.write(Utils.safe_popen_read("#{bin}/setops", "completion", "zsh"))
zsh_completions_temp.rewind

zsh_completion.install zsh_completions_temp.path => "_setops"

zsh_completions_temp.close
zsh_completions_temp.unlink

bash_completions_temp = Tempfile.new("setops-manager-zsh-completions")
bash_completions_temp.write(Utils.safe_popen_read("#{bin}/setops", "completion", "bash"))
bash_completions_temp.rewind

bash_completion.install bash_completions_temp.path => "setops"

bash_completions_temp.close
bash_completions_temp.unlink
end

test do
Expand Down

0 comments on commit 9a772c4

Please sign in to comment.