1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-05 10:58:07 +01:00

rename "req" command to "api".

req clashes with request command and this command is not intended for
usual user usage.
This commit is contained in:
Adrian Schröter 2009-06-04 14:14:01 +00:00
parent 49ceab6ab8
commit b556208cd4
2 changed files with 5 additions and 5 deletions

1
NEWS
View File

@ -34,6 +34,7 @@
* --xml for xml output (makes results_meta obsolete) * --xml for xml output (makes results_meta obsolete)
- request list -M shows open SRs created by the user. - request list -M shows open SRs created by the user.
- Fixed build support for images, only refered packages from buildinfo get used. (#485047) - Fixed build support for images, only refered packages from buildinfo get used. (#485047)
- "req" command got renamed to "api" to avoid clash with "request" command
0.117: 0.117:
- support checkout of single package via "osc co PACKAGE" when local dir is project - support checkout of single package via "osc co PACKAGE" when local dir is project

View File

@ -561,8 +561,6 @@ Please submit there instead, or use --nodevelproject to force direct submission.
', '.join([str(i.reqid) for i in myreqs ]) ', '.join([str(i.reqid) for i in myreqs ])
repl = raw_input('Revoke the old requests? (y/N) ') repl = raw_input('Revoke the old requests? (y/N) ')
# since we have no support in the cli to specify different action types yet
# the default is a submit action
result = create_submit_request(apiurl, result = create_submit_request(apiurl,
src_project, src_package, src_project, src_package,
dst_project, dst_package, dst_project, dst_package,
@ -652,6 +650,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
@cmdln.option('-M', '--mine', action='store_true', @cmdln.option('-M', '--mine', action='store_true',
help='only show requests created by yourself') help='only show requests created by yourself')
@cmdln.alias("rq") @cmdln.alias("rq")
@cmdln.alias("req")
def do_request(self, subcmd, opts, *args): def do_request(self, subcmd, opts, *args):
"""${cmd_name}: Show and modify requests """${cmd_name}: Show and modify requests
@ -2824,7 +2823,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
@cmdln.option('-a', '--add-header', default=None, metavar='NAME STRING', @cmdln.option('-a', '--add-header', default=None, metavar='NAME STRING',
nargs=2, action='append', dest='headers', nargs=2, action='append', dest='headers',
help='add the specified header to the request') help='add the specified header to the request')
def do_req(self, subcmd, opts, url): def do_api(self, subcmd, opts, url):
"""${cmd_name}: Issue an arbitrary request to the API """${cmd_name}: Issue an arbitrary request to the API
Useful for testing. Useful for testing.
@ -2835,8 +2834,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
Note the global -A and -H options (see osc help). Note the global -A and -H options (see osc help).
Examples: Examples:
osc req /source/home:user osc api /source/home:user
osc req -m PUT -f /etc/fstab source/home:user/test5/myfstab osc api -m PUT -f /etc/fstab source/home:user/test5/myfstab
${cmd_usage} ${cmd_usage}
${cmd_option_list} ${cmd_option_list}