Commit 7bbcdf70 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

Merge branch 'fix_remote_list_plotters_plotterparameters' into '1.4.x'

Add remote list feature

See merge request !18
parents 0f0c0d01 9e8d2797
Pipeline #19960 passed with stages
in 64 minutes and 40 seconds
......@@ -27,7 +27,7 @@
"""Usage:
%(prog)s plotterparameters list
%(prog)s plotterparameters list [--remote]
%(prog)s plotterparameters check [<name>]...
%(prog)s plotterparameters pull [--force] [<name>]...
%(prog)s plotterparameters create <name>...
......@@ -106,7 +106,11 @@ def pull(webapi, prefix, names, force, indentation, format_cache):
def process(args):
if args['list']:
return common.display_local_list(args['config'].path, 'plotterparameter')
if args['--remote']:
with common.make_webapi(args['config']) as webapi:
return common.display_remote_list(webapi, 'plotterparameter')
else:
return common.display_local_list(args['config'].path, 'plotterparameter')
elif args['check']:
return common.check(args['config'].path, 'plotterparameter', args['<name>'])
......
......@@ -27,7 +27,7 @@
"""Usage:
%(prog)s plotters list
%(prog)s plotters list [--remote]
%(prog)s plotters check [<name>]...
%(prog)s plotters pull [--force] [<name>]...
%(prog)s plotters plot [--force] [--sample_data] [--inputdata=<filename.json>] [--outputimage=<filename.png>] [--plotterparameter=<plotterparameter>] [<name>]...
......@@ -266,7 +266,11 @@ def plot(webapi, prefix, names, force, need_data_sample, inputdata, outputimage,
def process(args):
if args['list']:
return common.display_local_list(args['config'].path, 'plotter')
if args['--remote']:
with common.make_webapi(args['config']) as webapi:
return common.display_remote_list(webapi, 'plotter')
else:
return common.display_local_list(args['config'].path, 'plotter')
elif args['check']:
return common.check(args['config'].path, 'plotter', args['<name>'])
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment