Commit b0f60d0b authored by Theophile GENTILHOMME's avatar Theophile GENTILHOMME

[algorithms] Fix inputs

Change inputs to list of arguments when expected. Fix incorrect
recursice call.
parent 6b1d4af2
......@@ -337,7 +337,7 @@ def edit(ctx, name):
@algorithms.command()
@click.argument('name', nargs=1)
@click.argument('name', nargs=-1)
@click.pass_context
def check(ctx, name):
'''Checks a local algorithm for validity
......@@ -350,7 +350,7 @@ def check(ctx, name):
@algorithms.command()
@click.argument('name', nargs=1)
@click.argument('name', nargs=-1)
@click.option('--force', help='Performs operation regardless of conflicts',
is_flag=True)
@click.pass_context
......@@ -366,7 +366,7 @@ def pull(ctx, name, force):
@algorithms.command()
@click.argument('name', nargs=1)
@click.argument('name', nargs=-1)
@click.option('--force', help='Performs operation regardless of conflicts',
is_flag=True)
@click.option('--dry-run', help="Doesn't really perform the task, just "
......@@ -414,7 +414,7 @@ def status(ctx):
@algorithms.command()
@click.argument('name', nargs=1)
@click.argument('name', nargs=-1)
@click.pass_context
def create(ctx, name):
'''Creates a new local algorithm
......@@ -422,7 +422,7 @@ def create(ctx, name):
Example:
$ beat algorithms create xxx
'''
return common.create(ctx.meta['config'].path, 'algorithm', [name])
return common.create(ctx.meta['config'].path, 'algorithm', name)
......@@ -454,7 +454,7 @@ def fork(ctx, src, dst):
@algorithms.command()
@click.argument('name', nargs=1)
@click.argument('name', nargs=-1)
@click.option('--remote', help='Only acts on the remote copy of the algorithm',
is_flag=True)
@click.pass_context
......@@ -488,5 +488,5 @@ def execute(ctx, instructions, example):
print_examples()
return 0
return execute(ctx.meta['config'].path, ctx.meta['config'].cache,
return execute_impl(ctx.meta['config'].path, ctx.meta['config'].cache,
instructions)
Markdown is supported
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