diff options
author | Stig Thormodsrud <stig@vyatta.com> | 2010-11-02 17:38:16 -0700 |
---|---|---|
committer | Stig Thormodsrud <stig@vyatta.com> | 2010-11-02 17:38:16 -0700 |
commit | ae6f519d93d91f8c0e5942f343f656565acee233 (patch) | |
tree | 8d82c09f9c1cb87e3a5f219b78c785b033a33c92 | |
parent | c7112533df15ff7f4b5acef1f6ce83bb362ba929 (diff) | |
download | vyatta-cfg-ae6f519d93d91f8c0e5942f343f656565acee233.tar.gz vyatta-cfg-ae6f519d93d91f8c0e5942f343f656565acee233.zip |
Add hook to call config mode 'compare'
-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 |