[ovs-dev] [completion V2 2/3] ovs-vsctl-bashcomp: Add bash command-line completion for ovs-vsctl.

Ben Pfaff blp at nicira.com
Thu Mar 12 20:42:59 UTC 2015


[copying to mailing list since it seems to have been unicast to me]

On Thu, Mar 12, 2015 at 12:49:34PM -0700, Peter Amidon wrote:
> On Thu, 12 Mar 2015 11:11:57 -0700: Ben Pfaff <blp at nicira.com> wrote:
> 
> On Mon, Mar 09, 2015 at 06:36:15PM -0700, Alex Wang wrote:
>   >> From: Peter Amidon <peter at picnicpark.org>
>   >> 
>   >> This patch adds bash command-line completion script for ovs-vsctl.
>   >> Therein, codes are added to ovs-vsctl to allow it to print the
>   >> options and command arguments.  The ovs-vsctl-bashcomp.bash will
>   >> parse the vsctl command and complete on the user input.
>   >> 
>   >> The completion script can do the following::
>   >> 
>   >> - display available completion and complete on user input for
>   >> global/local options, command, and argument.
>   >> 
>   >> - query database and expand keywords like 'table/record/column/key'
>   >> to available completions.
>   >> 
>   >> - deal with argument relations like 'one and more', 'zero or one'.
>   >> 
>   >> - complete multiple ovs-vsctl commands cascaded via '--'.
>   >> 
>   >> To use the script, either copy it inside /etc/bash_completion.d/
>   >> or manually run it via . ovs-vsctl-bashcomp.bash.
>   >> 
>   >> Signed-off-by: Alex Wang <alexw at nicira.com>
> 
>   > Still needs Peter's Signed-off-by.
> 
>   > Acked-by: Ben Pfaff <blp at nicira.com>
> 
> Here's my Signed-off-by:
> 
> Signed-off-by: Peter Amidon <peter at picnicpark.org>

Thanks!



More information about the dev mailing list