mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-26 18:06:13 +01:00
20 lines
349 B
Python
20 lines
349 B
Python
|
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}'")
|