Skip to content

Commit 69d4604

Browse files
committed
feat: preparew for krew support
1 parent bf05412 commit 69d4604

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

kubectl-beam

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,17 @@ set -eu
2424

2525
VERSION="0.1.0"
2626

27+
# Detect if running as kubectl plugin
28+
PLUGIN_NAME=$(basename "$0")
29+
case "$PLUGIN_NAME" in
30+
kubectl-*)
31+
PLUGIN_MODE=true
32+
;;
33+
*)
34+
PLUGIN_MODE=false
35+
;;
36+
esac
37+
2738
# Terminal colors
2839
RED='\033[0;31m'
2940
GREEN='\033[0;32m'

0 commit comments

Comments
 (0)