Commit 9e8d2797 authored by Flavio TARSETTI's avatar Flavio TARSETTI
Browse files

[plotters/plotterparameters] added remote list feature

parent 0f0c0d01
Pipeline #19954 passed with stages
in 50 minutes and 12 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