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 . ```
24 lines
566 B
Python
Executable File
24 lines
566 B
Python
Executable File
#!/usr/bin/env python
|
|
from __future__ import print_function
|
|
|
|
import os
|
|
import sys
|
|
|
|
from common import submit
|
|
|
|
try:
|
|
data = {}
|
|
data['folder_id'] = sys.argv[3]
|
|
data['name'] = sys.argv[4]
|
|
data['create_type'] = 'folder'
|
|
except IndexError:
|
|
print('usage: %s key url folder_id name [description]' % os.path.basename(sys.argv[0]))
|
|
sys.exit(1)
|
|
try:
|
|
data['description'] = sys.argv[5]
|
|
except IndexError:
|
|
print("Unable to set description; using empty description in its place")
|
|
data['description'] = ''
|
|
|
|
submit(sys.argv[1], sys.argv[2], data)
|