Some styling for menus

This commit is contained in:
ville rantanen
2018-06-29 10:10:33 +03:00
parent 84b28ac748
commit d074932259
4 changed files with 43 additions and 14 deletions

View File

@@ -82,13 +82,13 @@ def get_script_url(public_url, share, end_point, token = "[TOKEN]"):
)
if end_point in ( "download", "direct"):
cmd = 'curl -s %s | bash /dev/stdin [-f]'%( url, )
doc = 'Download all files in the share.'
doc = 'Download all files in the share. -f to force overwrite existing files.'
if end_point == "client":
cmd = 'python <( curl -s %s )'%( url, )
doc = 'Console client to download and upload files.'
if end_point == "upload_split":
cmd = 'curl -s %s | python - [-s split_size_in_Mb] file_to_upload.ext [second.file.ext]'%( url, )
doc = 'Upload files to the share.'
doc = 'Upload files to the share. -s to set splitting size.'
return {'cmd': cmd, 'doc': doc}