Skip to content

Commit e46e8a4

Browse files
committed
add --version
1 parent 817515f commit e46e8a4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

kubectl-node_shell

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
set -e
33

44
kubectl=kubectl
5+
version=1.5.0
56
generator=""
67
node=""
78
nodefaultctx=0
@@ -16,6 +17,10 @@ while [ $# -gt 0 ]; do
1617
key="$1"
1718

1819
case $key in
20+
-v | --version)
21+
echo "kubectl-node-shell $version"
22+
exit 0
23+
;;
1924
--context)
2025
nodefaultctx=1
2126
kubectl="$kubectl --context $2"

0 commit comments

Comments
 (0)