diff options
| author | Eugene Triguba <eugenetriguba@gmail.com> | 2023-04-08 21:52:14 -0400 |
|---|---|---|
| committer | Eugene Triguba <eugenetriguba@gmail.com> | 2023-04-08 21:52:14 -0400 |
| commit | f8aedd9fb22866263fe0f343463e7edab6a4f12e (patch) | |
| tree | acbec3477bbce9586f2c8bbd7e1e29d6dd14a40b | |
| parent | Add start of poetry plugin (diff) | |
| download | poetry-plugin-taskipy2-f8aedd9fb22866263fe0f343463e7edab6a4f12e.zip | |
Fix command passed to taskipy.run
| -rw-r--r-- | poetry_plugin_taskipy/commands.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/poetry_plugin_taskipy/commands.py b/poetry_plugin_taskipy/commands.py index f4d8656..40381e9 100644 --- a/poetry_plugin_taskipy/commands.py +++ b/poetry_plugin_taskipy/commands.py @@ -19,13 +19,12 @@ class TaskipyCommand(Command): ] def handle(self) -> int: - command = "" + args = [] if self.argument("name"): - command += self.argument("name") + args.append(self.argument("name")) if self.argument("args"): - command += " " - command += " ".join(self.argument("args")) + args.extend(self.argument("args")) - return taskipy.run(command) + return taskipy.run(args) |