summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2014-07-02 03:45:34 +0200
committerDaniil Baturin <daniil@baturin.org>2014-07-02 03:45:34 +0200
commitc9a999261c43588365b7a2e904773ac8b52d9ef7 (patch)
tree3646f0690f3c9c2f60b31243b388516fc326b59f /etc
parent98d011895d7fd59b37e9a79bb3a8ce4caeaff4df (diff)
downloadvyatta-op-c9a999261c43588365b7a2e904773ac8b52d9ef7.tar.gz
vyatta-op-c9a999261c43588365b7a2e904773ac8b52d9ef7.zip
Bug #104: add pipe for stripping private information from config.
Diffstat (limited to 'etc')
-rw-r--r--etc/bash_completion.d/vyatta-op7
1 files changed, 6 insertions, 1 deletions
diff --git a/etc/bash_completion.d/vyatta-op b/etc/bash_completion.d/vyatta-op
index c59df65..e61c5da 100644
--- a/etc/bash_completion.d/vyatta-op
+++ b/etc/bash_completion.d/vyatta-op
@@ -492,6 +492,11 @@ no-more ()
cat
}
+strip-private ()
+{
+ ${vyatta_bindir}/vyos-strip-config.pl --strict --stdin
+}
+
# pipe command help
# $1: command
_vyatta_pipe_help ()
@@ -527,7 +532,7 @@ _vyatta_do_pipe_help ()
_vyatta_pipe_completion ()
{
local -a pipe_cmd=()
- local -a all_cmds=( 'count' 'match' 'no-match' 'more' 'no-more' )
+ local -a all_cmds=( 'count' 'match' 'no-match' 'more' 'no-more' 'strip-private' )
local found=0
_vyatta_pipe_completions=()
_vyatta_pipe_noncompletions=()