diff options
Diffstat (limited to 'etc/bash_completion.d/20vyatta-cfg')
-rwxr-xr-x | etc/bash_completion.d/20vyatta-cfg | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/etc/bash_completion.d/20vyatta-cfg b/etc/bash_completion.d/20vyatta-cfg index 070d50f..2679ba5 100755 --- a/etc/bash_completion.d/20vyatta-cfg +++ b/etc/bash_completion.d/20vyatta-cfg @@ -117,6 +117,11 @@ commit () fi } +compare () +{ + ${vyatta_sbindir}/vyatta-config-mgmt.pl --action=diff "$@" +} + save () { # transform individual args into quoted strings @@ -559,6 +564,7 @@ vyatta_config_complete () _get_help_text_items=( "activate" \ "comment" \ "commit" \ + "compare" \ "copy" \ "deactivate" \ "delete" \ @@ -577,6 +583,7 @@ vyatta_config_complete () "Activate this element" \ "Add comment to this configuration element" \ "Commit the current set of changes" \ + "Compare configuration revisions" \ "Copy a configuration element" \ "Deactivate this element" \ "Delete a configuration element" \ @@ -738,6 +745,7 @@ complete -F vyatta_loadsave_complete save complete -F vyatta_loadsave_complete load complete -F vyatta_loadsave_complete merge complete -F vyatta_loadkey_complete loadkey +complete -F vyatta_config_complete compare complete -F vyatta_config_complete comment complete -F vyatta_config_complete copy complete -F vyatta_config_complete rename |