Fix global-init imports, passing args from command line to required commands

This commit is contained in:
Roland Thomas Jr 2025-05-28 17:11:26 -04:00
parent f196e38c57
commit 8a3c1d6cc8
Signed by: roland
GPG Key ID: 7C3C2B085A4C2872
4 changed files with 5 additions and 5 deletions

View File

@ -776,6 +776,8 @@ class Falyx:
logger.info("Command '%s' selected.", choice) logger.info("Command '%s' selected.", choice)
if is_preview: if is_preview:
return True, name_map[choice], args, kwargs 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: try:
args, kwargs = await name_map[choice].parse_args( args, kwargs = await name_map[choice].parse_args(
input_args, from_validate input_args, from_validate

View File

@ -11,9 +11,7 @@ TEMPLATE_TASKS = """\
import asyncio import asyncio
import json import json
from falyx.action import Action, ChainedAction from falyx.action import Action, ChainedAction, ShellAction, SelectionAction
from falyx.io_action import ShellAction
from falyx.selection_action import SelectionAction
post_ids = ["1", "2", "3", "4", "5"] post_ids = ["1", "2", "3", "4", "5"]

View File

@ -1 +1 @@
__version__ = "0.1.39" __version__ = "0.1.40"

View File

@ -1,6 +1,6 @@
[tool.poetry] [tool.poetry]
name = "falyx" name = "falyx"
version = "0.1.39" version = "0.1.40"
description = "Reliable and introspectable async CLI action framework." description = "Reliable and introspectable async CLI action framework."
authors = ["Roland Thomas Jr <roland@rtj.dev>"] authors = ["Roland Thomas Jr <roland@rtj.dev>"]
license = "MIT" license = "MIT"