diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2010-08-26 13:58:17 -0700 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2010-08-26 13:58:17 -0700 |
commit | 46ed0425ebde3e026b402026cd633bef7c2b6c5f (patch) | |
tree | c4bb646df83861ef83bd457dd5ba7699b950acfd /etc | |
parent | 6d7e5ff8dd0a8b967afb44f7be00c277d438f717 (diff) | |
download | vyatta-cfg-46ed0425ebde3e026b402026cd633bef7c2b6c5f.tar.gz vyatta-cfg-46ed0425ebde3e026b402026cd633bef7c2b6c5f.zip |
new implementation for config output
* replace the original ConfigOutput perl module.
* simplify logic and fix bugs in original code.
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/bash_completion.d/20vyatta-cfg | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/etc/bash_completion.d/20vyatta-cfg b/etc/bash_completion.d/20vyatta-cfg index 56c1272..f6b02ce 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 () |