mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-19 10:51:34 +08:00
using the following command: ``` autopep8 -i -r --exclude $(sed -e 's|^|./|' -e 's|/$||' .ci/flake8_blacklist.txt | paste -sd,) --select E201,E202 . ```
30 lines
652 B
Python
30 lines
652 B
Python
#!/usr/bin/env python
|
|
"""
|
|
# ---------------------------------------------- #
|
|
# PARKLAB, Author: RPARK
|
|
API example script for deleting workflows
|
|
# ---------------------------------------------- #
|
|
|
|
Example calls:
|
|
python workflow_delete.py <api_key> <galaxy_url>/api/workflows/<workflow id> True
|
|
"""
|
|
from __future__ import print_function
|
|
|
|
import os
|
|
import sys
|
|
|
|
from common import delete
|
|
|
|
try:
|
|
assert sys.argv[2]
|
|
except IndexError:
|
|
print('usage: %s key url [purge (true/false)] ' % os.path.basename(sys.argv[0]))
|
|
sys.exit(1)
|
|
try:
|
|
data = {}
|
|
data['purge'] = sys.argv[3]
|
|
except IndexError:
|
|
pass
|
|
|
|
delete(sys.argv[1], sys.argv[2], data)
|