Make things pretty

Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
2022-03-11 18:38:32 +00:00
parent b9647b569d
commit 381adefe87
18 changed files with 161 additions and 63 deletions

View File

@@ -1,18 +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}
LABEL=""
ALL_NAMESPACES=false
print_usage() {
echo "kube-all - A better 'kubectl get all' - actually get all Kubernetes resources, including custom resources"
blue "kube-all - A better 'kubectl get all' - actually get all Kubernetes resources, including custom resources"
echo " "
underline "Usage:"
echo "kube-all [options]"
echo " "
echo "Options:"
underline "Options:"
echo "-h, --help show this help text"
echo "-n, --namespace the namespace the to search in"
echo "-l, --selector the label selector to match on"