argo-cd/cmd/argocd/commands/testdata/argocd-test-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
424 B
Bash
Executable file

#!/bin/bash
# Ensure we receive the expected flags and values
while [[ "$#" -gt 0 ]]; do
case $1 in
--flag1) FLAG1="$2"; shift ;;
--flag2) FLAG2="$2"; shift ;;
--help) echo "Usage: argocd test-plugin --flag1 value1 --flag2 value2"; exit 0 ;;
*) echo "Unknown argument: $1"; exit 1 ;;
esac
shift
done
# Output the parsed flag values
echo "Flag1: ${FLAG1}"
echo "Flag2: ${FLAG2}"