Merge pull request #4640 from ryanpetrello/cli-lookup-by-name

cli: add ability to specify a name instead of primary key

Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
softwarefactory-project-zuul[bot]
2019-09-03 22:09:10 +00:00
committed by GitHub
7 changed files with 120 additions and 29 deletions

View File

@@ -201,7 +201,7 @@ class CLI(object):
subparsers.required = True
# parse the action from OPTIONS
parser = ResourceOptionsParser(page, self.resource, subparsers)
parser = ResourceOptionsParser(self.v2, page, self.resource, subparsers)
if from_sphinx:
# Our Sphinx plugin runs `parse_action` for *every* available
# resource + action in the API so that it can generate usage