diff --git a/dosei/main.py b/dosei/main.py index c618b85..aa9294d 100644 --- a/dosei/main.py +++ b/dosei/main.py @@ -16,10 +16,7 @@ def cli(): pass - -@cli.command() -@click.argument("func", required=False) -def run(func): +def _run(func): if func: return Dosei.call_func(import_from_string(func)) try: @@ -30,6 +27,10 @@ def run(func): raise click.ClickException('Command "run" not found.') os.system(app.command) +@cli.command() +@click.argument("func", required=False) +def run(func): + _run(func) @cli.command() def dev(): diff --git a/pyproject.toml b/pyproject.toml index 0395bce..6d8eaab 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "dosei" -version = "0.0.18a6" +version = "0.0.18a7" description = "Dosei Python SDK" authors = ["Alvaro Molina "] license = "Apache-2.0"