summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2014-07-02 05:19:00 +0200
committerDaniil Baturin <daniil@baturin.org>2014-07-02 05:19:00 +0200
commit2397568b5778509d01c21105dab01cc2edf364fc (patch)
tree1b1ffe932212d66701bcc674f67e61a5ae5eb4f7
parent3c8f6ed763ef764b0b2c2d8c1ad3bf5bb8559f6d (diff)
downloadvyatta-op-2397568b5778509d01c21105dab01cc2edf364fc.tar.gz
vyatta-op-2397568b5778509d01c21105dab01cc2edf364fc.zip
Bug #251: add completion and help for the "| commands" filter.
-rw-r--r--etc/bash_completion.d/vyatta-op6
1 files changed, 6 insertions, 0 deletions
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";;
'<pattern>') help="Pattern for matching";;
esac
echo -n "$help"