Make things pretty
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
@@ -1,17 +1,20 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
source .utils
|
||||
|
||||
NAMESPACE="$(kubectl config view --minify --output 'jsonpath={..namespace}')"
|
||||
NAMESPACE="$(kubectl config view --minify --output 'jsonpath={..namespace}' &>/dev/null)"
|
||||
set -e
|
||||
NAMESPACE=${NAMESPACE:-default}
|
||||
POD=""
|
||||
CMD="sh"
|
||||
|
||||
print_usage() {
|
||||
echo "kube-exec - execute commands within a pod"
|
||||
blue "kube-exec - execute commands within a pod"
|
||||
echo " "
|
||||
underline "Usage:"
|
||||
echo "kube-exec [options]"
|
||||
echo " "
|
||||
echo "Options:"
|
||||
underline "Options:"
|
||||
echo "-h, --help show this help text"
|
||||
echo "-n, --namespace the namespace the pod is in"
|
||||
echo "-p, --pod the name of the pod"
|
||||
|
Reference in New Issue
Block a user