formatted kubectl completion and used helper function

This commit is contained in:
Gurkirat Singh
2021-01-10 19:30:24 +05:30
committed by Noah Gorny
parent 253e87e4a2
commit 202531321d
2 changed files with 6 additions and 6 deletions

View File

@@ -1,8 +1,7 @@
#!/usr/bin/env bash
# shellcheck shell=bash
cite "about-completion"
about-completion "kubectl (Kubernetes CLI) completion"
# kubectl (Kubernetes CLI) completion
if command -v kubectl &>/dev/null
then
eval "$(kubectl completion bash)"
if _binary_exists kubectl; then
eval "$(kubectl completion bash)"
fi