Merge "add nova-manage bash completion script"
This commit is contained in:
1
Authors
1
Authors
@@ -58,6 +58,7 @@ Devdeep Singh <devdeep.singh@citrix.com>
|
|||||||
Devendra Modium <dmodium@isi.edu>
|
Devendra Modium <dmodium@isi.edu>
|
||||||
Devin Carlen <devin.carlen@gmail.com>
|
Devin Carlen <devin.carlen@gmail.com>
|
||||||
Dina Belova <dbelova@mirantis.com>
|
Dina Belova <dbelova@mirantis.com>
|
||||||
|
Dominik Heidler <dheidler@suse.de>
|
||||||
Don Dugger <donald.d.dugger@intel.com>
|
Don Dugger <donald.d.dugger@intel.com>
|
||||||
Donal Lafferty <donal.lafferty@citrix.com>
|
Donal Lafferty <donal.lafferty@citrix.com>
|
||||||
Dong-In David Kang <dkang@isi.edu>
|
Dong-In David Kang <dkang@isi.edu>
|
||||||
|
|||||||
@@ -1692,6 +1692,18 @@ def main():
|
|||||||
print "\t%s" % k
|
print "\t%s" % k
|
||||||
sys.exit(2)
|
sys.exit(2)
|
||||||
category = argv.pop(0)
|
category = argv.pop(0)
|
||||||
|
if category == "bash-completion":
|
||||||
|
if len(argv) < 1:
|
||||||
|
print " ".join([k for (k, v) in CATEGORIES])
|
||||||
|
else:
|
||||||
|
query_category = argv.pop(0)
|
||||||
|
matches = lazy_match(query_category, CATEGORIES)
|
||||||
|
# instantiate the command group object
|
||||||
|
category, fn = matches[0]
|
||||||
|
command_object = fn()
|
||||||
|
actions = methods_of(command_object)
|
||||||
|
print " ".join([k for (k, v) in actions])
|
||||||
|
sys.exit(0)
|
||||||
matches = lazy_match(category, CATEGORIES)
|
matches = lazy_match(category, CATEGORIES)
|
||||||
# instantiate the command group object
|
# instantiate the command group object
|
||||||
category, fn = matches[0]
|
category, fn = matches[0]
|
||||||
|
|||||||
Reference in New Issue
Block a user