mirror of
https://github.com/YunoHost/yunorunner.git
synced 2024-09-03 20:05:52 +02:00
Add a 'ciclic shell' command for easier debugging
This commit is contained in:
parent
489d9e6140
commit
5357376afe
1 changed files with 6 additions and 1 deletions
7
ciclic
7
ciclic
|
@ -56,6 +56,11 @@ def request_api(path, domain, verb, data={}, check_return_code=True):
|
||||||
return response
|
return response
|
||||||
|
|
||||||
|
|
||||||
|
def shell():
|
||||||
|
import ipdb; ipdb.set_trace()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def add(name, url_or_path, domain=DOMAIN):
|
def add(name, url_or_path, domain=DOMAIN):
|
||||||
request_api(
|
request_api(
|
||||||
path="job",
|
path="job",
|
||||||
|
@ -141,4 +146,4 @@ def restart(job_id, domain=DOMAIN):
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
require_token()
|
require_token()
|
||||||
argh.dispatch_commands([add, list_, delete, stop, restart, app_list])
|
argh.dispatch_commands([add, list_, delete, stop, restart, app_list, shell])
|
||||||
|
|
Loading…
Add table
Reference in a new issue