Remove args/kwargs being passed to generated Action from FactoryAction
This commit is contained in:
parent
b51ba87999
commit
0a1ba22a3d
|
@ -63,6 +63,8 @@ class ActionFactoryAction(BaseAction):
|
|||
return self.factory, None
|
||||
|
||||
async def _run(self, *args, **kwargs) -> Any:
|
||||
args = (*self.args, *args)
|
||||
kwargs = {**self.kwargs, **kwargs}
|
||||
updated_kwargs = self._maybe_inject_last_result(kwargs)
|
||||
context = ExecutionContext(
|
||||
name=f"{self.name} (factory)",
|
||||
|
@ -92,7 +94,7 @@ class ActionFactoryAction(BaseAction):
|
|||
)
|
||||
if self.options_manager:
|
||||
generated_action.set_options_manager(self.options_manager)
|
||||
context.result = await generated_action(*args, **kwargs)
|
||||
context.result = await generated_action()
|
||||
await self.hooks.trigger(HookType.ON_SUCCESS, context)
|
||||
return context.result
|
||||
except Exception as error:
|
||||
|
|
|
@ -1 +1 @@
|
|||
__version__ = "0.1.31"
|
||||
__version__ = "0.1.32"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[tool.poetry]
|
||||
name = "falyx"
|
||||
version = "0.1.31"
|
||||
version = "0.1.32"
|
||||
description = "Reliable and introspectable async CLI action framework."
|
||||
authors = ["Roland Thomas Jr <roland@rtj.dev>"]
|
||||
license = "MIT"
|
||||
|
|
Loading…
Reference in New Issue