mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-09 22:36:14 +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:
parent
49ceab6ab8
commit
b556208cd4
1
NEWS
1
NEWS
@ -34,6 +34,7 @@
|
||||
* --xml for xml output (makes results_meta obsolete)
|
||||
- request list -M shows open SRs created by the user.
|
||||
- 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:
|
||||
- support checkout of single package via "osc co PACKAGE" when local dir is project
|
||||
|
@ -561,8 +561,6 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
', '.join([str(i.reqid) for i in myreqs ])
|
||||
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,
|
||||
src_project, src_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',
|
||||
help='only show requests created by yourself')
|
||||
@cmdln.alias("rq")
|
||||
@cmdln.alias("req")
|
||||
def do_request(self, subcmd, opts, *args):
|
||||
"""${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',
|
||||
nargs=2, action='append', dest='headers',
|
||||
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
|
||||
|
||||
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).
|
||||
|
||||
Examples:
|
||||
osc req /source/home:user
|
||||
osc req -m PUT -f /etc/fstab source/home:user/test5/myfstab
|
||||
osc api /source/home:user
|
||||
osc api -m PUT -f /etc/fstab source/home:user/test5/myfstab
|
||||
|
||||
${cmd_usage}
|
||||
${cmd_option_list}
|
||||
|
Loading…
Reference in New Issue
Block a user