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)
|
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
|
||||||
|
|
|
@ -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"]
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
__version__ = "0.1.39"
|
__version__ = "0.1.40"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue