argo-cd/cmd/argocd/commands/testdata/argocd-status-code-plugin
Nitish Kumar 6cf29619ae
feat(cli): Add Plugin Support to the Argo CD CLI (#20074)
Signed-off-by: nitishfy <justnitish06@gmail.com>
Co-authored-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com>
2025-05-05 16:12:33 -07:00

16 lines
240 B
Bash
Executable file

#!/bin/bash
case "$1" in
"--flag1")
echo "Flag1 detected: $2"
exit 0
;;
"--flag3")
echo "Unknown argument: --flag3" >&2
exit 1
;;
*)
echo "Plugin not found or invalid command" >&2
exit 127
;;
esac