[ovs-git] [openvswitch/ovs] 94ace6: ovs-appctl-bashcomp: Keep naming consistency.

GitHub noreply at github.com
Thu Mar 12 21:19:43 UTC 2015


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 94ace6ffe4d5f0783b308bfc0c7da0ff65afb9a9
      https://github.com/openvswitch/ovs/commit/94ace6ffe4d5f0783b308bfc0c7da0ff65afb9a9
  Author: Alex Wang <alexw at nicira.com>
  Date:   2015-03-12 (Thu, 12 Mar 2015)

  Changed paths:
    M tests/completion.at
    M utilities/automake.mk
    A utilities/ovs-appctl-bashcomp.bash
    A utilities/ovs-command-bashcomp.INSTALL.md
    R utilities/ovs-command-compgen.INSTALL.md
    R utilities/ovs-command-compgen.bash

  Log Message:
  -----------
  ovs-appctl-bashcomp: Keep naming consistency.

Before adding the completion script ovs-vsctl-bashcomp.bash for
ovs-vsctl command, this commit renames the ovs-command-compgen.bash
to ovs-appctl-bashcomp.bash to keep the script naming consistent.

Signed-off-by: Alex Wang <alexw at nicira.com>
Acked-by: Ben Pfaff <blp at nicira.com>


  Commit: 95e4a97a6f68bcc98525e238f73e7924d8645f1b
      https://github.com/openvswitch/ovs/commit/95e4a97a6f68bcc98525e238f73e7924d8645f1b
  Author: Peter Amidon <peter at picnicpark.org>
  Date:   2015-03-12 (Thu, 12 Mar 2015)

  Changed paths:
    M AUTHORS
    M utilities/automake.mk
    A utilities/ovs-vsctl-bashcomp.bash
    M utilities/ovs-vsctl.c

  Log Message:
  -----------
  ovs-vsctl-bashcomp: Add bash command-line completion for ovs-vsctl.

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 completions and complete on user input for
  global/local options, sub-commands, and arguments.

- 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: Peter Amidon <peter at picnicpark.org>
Signed-off-by: Alex Wang <alexw at nicira.com>
Acked-by: Ben Pfaff <blp at nicira.com>


  Commit: 557570fa09ccc1e2a5b76658bc18d2e04e9d7fb6
      https://github.com/openvswitch/ovs/commit/557570fa09ccc1e2a5b76658bc18d2e04e9d7fb6
  Author: Alex Wang <alexw at nicira.com>
  Date:   2015-03-12 (Thu, 12 Mar 2015)

  Changed paths:
    M NEWS
    M tests/completion.at
    M utilities/automake.mk
    M utilities/ovs-command-bashcomp.INSTALL.md

  Log Message:
  -----------
  ovs-vsctl-bashcomp: Documentation and unit tests.

This commit includes the unit tests for ovs-vsctl-bashcomp
and refines the ovs-command-bashcomp.INSTALL.md to introduce
the bash completion for ovs-vsctl.

Signed-off-by: Alex Wang <alexw at nicira.com>
Acked-by: Ben Pfaff <blp at nicira.com>


Compare: https://github.com/openvswitch/ovs/compare/ca60ea494930...557570fa09cc


More information about the git mailing list