From f8aedd9fb22866263fe0f343463e7edab6a4f12e Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sat, 8 Apr 2023 21:52:14 -0400 Subject: Fix command passed to taskipy.run --- poetry_plugin_taskipy/commands.py | 9 ++++----- 1 file 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) -- cgit v1.2.3