From 8a3c1d6cc8b64ba5c9366e6f90ca026fdd50c689 Mon Sep 17 00:00:00 2001 From: Roland Thomas Date: Wed, 28 May 2025 17:11:26 -0400 Subject: [PATCH] Fix global-init imports, passing args from command line to required commands --- falyx/falyx.py | 2 ++ falyx/init.py | 4 +--- falyx/version.py | 2 +- pyproject.toml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/falyx/falyx.py b/falyx/falyx.py index a0035f1..a6d2f8a 100644 --- a/falyx/falyx.py +++ b/falyx/falyx.py @@ -776,6 +776,8 @@ class Falyx: logger.info("Command '%s' selected.", choice) if is_preview: return True, name_map[choice], args, kwargs + elif self.mode in {FalyxMode.RUN, FalyxMode.RUN_ALL, FalyxMode.PREVIEW}: + return False, name_map[choice], args, kwargs try: args, kwargs = await name_map[choice].parse_args( input_args, from_validate diff --git a/falyx/init.py b/falyx/init.py index 58260e4..ecbedbb 100644 --- a/falyx/init.py +++ b/falyx/init.py @@ -11,9 +11,7 @@ TEMPLATE_TASKS = """\ import asyncio import json -from falyx.action import Action, ChainedAction -from falyx.io_action import ShellAction -from falyx.selection_action import SelectionAction +from falyx.action import Action, ChainedAction, ShellAction, SelectionAction post_ids = ["1", "2", "3", "4", "5"] diff --git a/falyx/version.py b/falyx/version.py index 31b9658..5dc4aab 100644 --- a/falyx/version.py +++ b/falyx/version.py @@ -1 +1 @@ -__version__ = "0.1.39" +__version__ = "0.1.40" diff --git a/pyproject.toml b/pyproject.toml index 8d4bbf5..1cad8a7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "falyx" -version = "0.1.39" +version = "0.1.40" description = "Reliable and introspectable async CLI action framework." authors = ["Roland Thomas Jr "] license = "MIT"