Skip to content

Commit

Permalink
try
Browse files Browse the repository at this point in the history
  • Loading branch information
Alw3ys committed Feb 6, 2024
1 parent 4e2f900 commit 183c999
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions dosei/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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():
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "dosei"
version = "0.0.18a6"
version = "0.0.18a7"
description = "Dosei Python SDK"
authors = ["Alvaro Molina <[email protected]>"]
license = "Apache-2.0"
Expand Down

0 comments on commit 183c999

Please sign in to comment.