From 3627ad475ae19c07219e55aa838ec1d0c47cc5b6 Mon Sep 17 00:00:00 2001 From: Ville Rantanen Date: Wed, 18 Apr 2018 10:05:07 +0300 Subject: [PATCH] client in api, slightly more robust client --- code/flees-manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/flees-manager.py b/code/flees-manager.py index ef20bc4..c5f9e4c 100755 --- a/code/flees-manager.py +++ b/code/flees-manager.py @@ -374,7 +374,7 @@ def print_rest_api(shares, config, opts): def print_rest_api_client(config, share, token): print("Command to run python client:") - print("python <( %s/script/client/%s/%s )"%( + print("python <( curl -s %s/script/client/%s/%s )"%( config['public_url'], share['name'], token @@ -617,7 +617,7 @@ def parse_options(): parser_rest = subparsers.add_parser('rest', help = "Display REST API links") parser_rest.add_argument(dest="name", help = "Name of the share") parser_rest.add_argument(dest="type", help = "Type of command", - choices = ['list','login','upload','download','direct','zip'] + choices = ['client','direct','download','list','login','upload','zip'] ) parser_rest.add_argument(dest="filename", help = "File name for download/direct queries", nargs = '?',