1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-15 08:36:13 +01:00
github.com_openSUSE_osc/doc/plugins/request_accept.py

20 lines
349 B
Python
Raw Normal View History

import osc.commandline
class RequestAcceptCommand(osc.commandline.OscCommand):
"""
Accept request
"""
name = "accept"
parent = "RequestCommand"
def init_arguments(self):
self.add_argument(
"id",
type=int,
)
def run(self, args):
print(f"Accepting request '{args.id}'")