summaryrefslogtreecommitdiff
path: root/etc/bash_completion.d
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-09-08 08:24:09 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-09-08 08:24:09 -0700
commit134f35f838d444d63a1774b986380264e7089c6e (patch)
treef720a657594a52bdb611dabef15b85ae531ffce5 /etc/bash_completion.d
parentb1c8827efedc245d47f89cf8b4db30f495498ae7 (diff)
parent5a4ac0f6fc5fa0a25663f7834fef4cbd5ba98ecd (diff)
downloadvyatta-cfg-134f35f838d444d63a1774b986380264e7089c6e.tar.gz
vyatta-cfg-134f35f838d444d63a1774b986380264e7089c6e.zip
Merge branch 'mendocino' of suva.vyatta.com:/git/vyatta-cfg into mendocino
Diffstat (limited to 'etc/bash_completion.d')
-rwxr-xr-xetc/bash_completion.d/20vyatta-cfg10
1 files changed, 3 insertions, 7 deletions
diff --git a/etc/bash_completion.d/20vyatta-cfg b/etc/bash_completion.d/20vyatta-cfg
index b19fef2..98f26f8 100755
--- a/etc/bash_completion.d/20vyatta-cfg
+++ b/etc/bash_completion.d/20vyatta-cfg
@@ -84,19 +84,15 @@ done
show ()
{
- local show_all=''
local -a args=()
for arg in "$@"; do
if [ "$arg" == "-all" ]; then
- show_all='-all'
+ args+=('--show-show-defaults')
else
- args[${#args[@]}]="$arg"
+ args+=("$arg")
fi
done
- local level=$(vyatta_cli_shell_api NOEVAL getEditLevelStr)
- ${vyatta_sbindir}/vyatta-output-config.pl ${show_all} \
- $level ${args[@]} \
- | eval "${VYATTA_PAGER:-cat}"
+ cli-shell-api showCfg "${args[@]}" | eval "${VYATTA_PAGER:-cat}"
}
commit ()