Fix global-init imports, passing args from command line to required commands
This commit is contained in:
parent
f196e38c57
commit
8a3c1d6cc8
|
@ -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
|
||||
|
|
|
@ -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"]
|
||||
|
|
|
@ -1 +1 @@
|
|||
__version__ = "0.1.39"
|
||||
__version__ = "0.1.40"
|
||||
|
|
|
@ -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 <roland@rtj.dev>"]
|
||||
license = "MIT"
|
||||
|
|
Loading…
Reference in New Issue