From 2397568b5778509d01c21105dab01cc2edf364fc Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Wed, 2 Jul 2014 05:19:00 +0200 Subject: Bug #251: add completion and help for the "| commands" filter. --- etc/bash_completion.d/vyatta-op | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/etc/bash_completion.d/vyatta-op b/etc/bash_completion.d/vyatta-op index 052cbff..724ce45 100644 --- a/etc/bash_completion.d/vyatta-op +++ b/etc/bash_completion.d/vyatta-op @@ -497,6 +497,11 @@ strip-private () ${vyatta_bindir}/vyos-strip-config.pl --strict --stdin } +commands () +{ + ${vyatta_sbindir}/vyatta-config-gen-sets.pl - +} + # pipe command help # $1: command _vyatta_pipe_help () @@ -509,6 +514,7 @@ _vyatta_pipe_help () more) help="Paginate the output";; no-more) help="Do not paginate the output";; strip-private) help="Remove private information from the config";; + commands) help="Convert config to set commands";; '') help="Pattern for matching";; esac echo -n "$help" -- cgit v1.2.3