Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions kubectl-argo-rollouts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ class KubectlArgoRollouts < Formula
homepage "https://argoproj.io"
baseurl = "https://github.com/argoproj/argo-rollouts/releases/download"
version "v1.8.1"
revision 1

if OS.mac?
kernel = "darwin"
Expand All @@ -19,5 +20,13 @@ class KubectlArgoRollouts < Formula
def install
bin.install @@bin_name
mv bin/ + @@bin_name.to_s, bin/"kubectl-argo-rollouts"
kubectl_plugin_completion = <<~EOS
#!/usr/bin/env sh
# Call the __complete command passing it all arguments
kubectl argo rollouts __complete "$@"
EOS

(bin/"kubectl_complete-argo-rollouts").write(kubectl_plugin_completion)
chmod 0755, bin/"kubectl_complete-argo-rollouts"
end
end
9 changes: 9 additions & 0 deletions [email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ class KubectlArgoRolloutsAT18 < Formula
homepage "https://argoproj.io"
baseurl = "https://github.com/argoproj/argo-rollouts/releases/download"
version "v1.8.1"
revision 1

if OS.mac?
kernel = "darwin"
Expand All @@ -19,5 +20,13 @@ class KubectlArgoRolloutsAT18 < Formula
def install
bin.install @@bin_name
mv bin/ + @@bin_name.to_s, bin/"kubectl-argo-rollouts"
kubectl_plugin_completion = <<~EOS
#!/usr/bin/env sh
# Call the __complete command passing it all arguments
kubectl argo rollouts __complete "$@"
EOS

(bin/"kubectl_complete-argo-rollouts").write(kubectl_plugin_completion)
chmod 0755, bin/"kubectl_complete-argo-rollouts"
end
end
18 changes: 9 additions & 9 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,7 @@ CLI_NAME="$1"
VERSION="$2"
BREW_VERSION="$3"

if [ "${CLI_NAME}" = "argocd" ]; then
URL_BASE="https://github.com/argoproj/argo-cd/releases/download"
CLASSNAME="Argocd"
DESC="GitOps Continuous Delivery for Kubernetes"
elif [ "${CLI_NAME}" = "argo" ]; then
URL_BASE="https://github.com/argoproj/argo/releases/download"
CLASSNAME="Argo"
DESC="Get stuff done with container-native workflows for Kubernetes."
elif [ "${CLI_NAME}" = "kubectl-argo-rollouts" ]; then
if [ "${CLI_NAME}" = "kubectl-argo-rollouts" ]; then
URL_BASE="https://github.com/argoproj/argo-rollouts/releases/download"
CLASSNAME="KubectlArgoRollouts"
DESC="Kubectl Argo Rollouts Plugin."
Expand Down Expand Up @@ -63,6 +55,14 @@ class ${CLASSNAME}${CLASS_POSTFIX} < Formula
def install
bin.install @@bin_name
mv bin/ + @@bin_name.to_s, bin/\"${CLI_NAME}\"
kubectl_plugin_completion = <<~EOS
#!/usr/bin/env sh
# Call the __complete command passing it all arguments
kubectl argo rollouts __complete \"\$@\"
EOS

(bin/\"kubectl_complete-argo-rollouts\").write(kubectl_plugin_completion)
chmod 0755, bin/\"kubectl_complete-argo-rollouts\"
end
end"

Expand Down