falyx 0.1.31__tar.gz → 0.1.33__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. {falyx-0.1.31 → falyx-0.1.33}/PKG-INFO +1 -1
  2. {falyx-0.1.31 → falyx-0.1.33}/falyx/action/action_factory.py +3 -1
  3. {falyx-0.1.31 → falyx-0.1.33}/falyx/parsers/argparse.py +5 -1
  4. {falyx-0.1.31 → falyx-0.1.33}/falyx/parsers/parsers.py +1 -1
  5. falyx-0.1.33/falyx/version.py +1 -0
  6. {falyx-0.1.31 → falyx-0.1.33}/pyproject.toml +1 -1
  7. falyx-0.1.31/falyx/version.py +0 -1
  8. {falyx-0.1.31 → falyx-0.1.33}/LICENSE +0 -0
  9. {falyx-0.1.31 → falyx-0.1.33}/README.md +0 -0
  10. {falyx-0.1.31 → falyx-0.1.33}/falyx/.pytyped +0 -0
  11. {falyx-0.1.31 → falyx-0.1.33}/falyx/__init__.py +0 -0
  12. {falyx-0.1.31 → falyx-0.1.33}/falyx/__main__.py +0 -0
  13. {falyx-0.1.31 → falyx-0.1.33}/falyx/action/.pytyped +0 -0
  14. {falyx-0.1.31 → falyx-0.1.33}/falyx/action/__init__.py +0 -0
  15. {falyx-0.1.31 → falyx-0.1.33}/falyx/action/action.py +0 -0
  16. {falyx-0.1.31 → falyx-0.1.33}/falyx/action/http_action.py +0 -0
  17. {falyx-0.1.31 → falyx-0.1.33}/falyx/action/io_action.py +0 -0
  18. {falyx-0.1.31 → falyx-0.1.33}/falyx/action/menu_action.py +0 -0
  19. {falyx-0.1.31 → falyx-0.1.33}/falyx/action/select_file_action.py +0 -0
  20. {falyx-0.1.31 → falyx-0.1.33}/falyx/action/selection_action.py +0 -0
  21. {falyx-0.1.31 → falyx-0.1.33}/falyx/action/signal_action.py +0 -0
  22. {falyx-0.1.31 → falyx-0.1.33}/falyx/action/types.py +0 -0
  23. {falyx-0.1.31 → falyx-0.1.33}/falyx/action/user_input_action.py +0 -0
  24. {falyx-0.1.31 → falyx-0.1.33}/falyx/bottom_bar.py +0 -0
  25. {falyx-0.1.31 → falyx-0.1.33}/falyx/command.py +0 -0
  26. {falyx-0.1.31 → falyx-0.1.33}/falyx/config.py +0 -0
  27. {falyx-0.1.31 → falyx-0.1.33}/falyx/context.py +0 -0
  28. {falyx-0.1.31 → falyx-0.1.33}/falyx/debug.py +0 -0
  29. {falyx-0.1.31 → falyx-0.1.33}/falyx/exceptions.py +0 -0
  30. {falyx-0.1.31 → falyx-0.1.33}/falyx/execution_registry.py +0 -0
  31. {falyx-0.1.31 → falyx-0.1.33}/falyx/falyx.py +0 -0
  32. {falyx-0.1.31 → falyx-0.1.33}/falyx/hook_manager.py +0 -0
  33. {falyx-0.1.31 → falyx-0.1.33}/falyx/hooks.py +0 -0
  34. {falyx-0.1.31 → falyx-0.1.33}/falyx/init.py +0 -0
  35. {falyx-0.1.31 → falyx-0.1.33}/falyx/logger.py +0 -0
  36. {falyx-0.1.31 → falyx-0.1.33}/falyx/menu.py +0 -0
  37. {falyx-0.1.31 → falyx-0.1.33}/falyx/options_manager.py +0 -0
  38. {falyx-0.1.31 → falyx-0.1.33}/falyx/parsers/.pytyped +0 -0
  39. {falyx-0.1.31 → falyx-0.1.33}/falyx/parsers/__init__.py +0 -0
  40. {falyx-0.1.31 → falyx-0.1.33}/falyx/parsers/signature.py +0 -0
  41. {falyx-0.1.31 → falyx-0.1.33}/falyx/parsers/utils.py +0 -0
  42. {falyx-0.1.31 → falyx-0.1.33}/falyx/prompt_utils.py +0 -0
  43. {falyx-0.1.31 → falyx-0.1.33}/falyx/protocols.py +0 -0
  44. {falyx-0.1.31 → falyx-0.1.33}/falyx/retry.py +0 -0
  45. {falyx-0.1.31 → falyx-0.1.33}/falyx/retry_utils.py +0 -0
  46. {falyx-0.1.31 → falyx-0.1.33}/falyx/selection.py +0 -0
  47. {falyx-0.1.31 → falyx-0.1.33}/falyx/signals.py +0 -0
  48. {falyx-0.1.31 → falyx-0.1.33}/falyx/tagged_table.py +0 -0
  49. {falyx-0.1.31 → falyx-0.1.33}/falyx/themes/__init__.py +0 -0
  50. {falyx-0.1.31 → falyx-0.1.33}/falyx/themes/colors.py +0 -0
  51. {falyx-0.1.31 → falyx-0.1.33}/falyx/utils.py +0 -0
  52. {falyx-0.1.31 → falyx-0.1.33}/falyx/validators.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: falyx
3
- Version: 0.1.31
3
+ Version: 0.1.33
4
4
  Summary: Reliable and introspectable async CLI action framework.
5
5
  License: MIT
6
6
  Author: Roland Thomas Jr
@@ -63,6 +63,8 @@ class ActionFactoryAction(BaseAction):
63
63
  return self.factory, None
64
64
 
65
65
  async def _run(self, *args, **kwargs) -> Any:
66
+ args = (*self.args, *args)
67
+ kwargs = {**self.kwargs, **kwargs}
66
68
  updated_kwargs = self._maybe_inject_last_result(kwargs)
67
69
  context = ExecutionContext(
68
70
  name=f"{self.name} (factory)",
@@ -92,7 +94,7 @@ class ActionFactoryAction(BaseAction):
92
94
  )
93
95
  if self.options_manager:
94
96
  generated_action.set_options_manager(self.options_manager)
95
- context.result = await generated_action(*args, **kwargs)
97
+ context.result = await generated_action()
96
98
  await self.hooks.trigger(HookType.ON_SUCCESS, context)
97
99
  return context.result
98
100
  except Exception as error:
@@ -77,7 +77,11 @@ class Argument:
77
77
  and not self.positional
78
78
  ):
79
79
  choice_text = self.dest.upper()
80
- elif isinstance(self.nargs, str):
80
+ elif self.action in (
81
+ ArgumentAction.STORE,
82
+ ArgumentAction.APPEND,
83
+ ArgumentAction.EXTEND,
84
+ ) or isinstance(self.nargs, str):
81
85
  choice_text = self.dest
82
86
 
83
87
  if self.nargs == "?":
@@ -114,7 +114,7 @@ def get_arg_parsers(
114
114
  help="Skip confirmation prompts",
115
115
  )
116
116
 
117
- run_group.add_argument(
117
+ run_parser.add_argument(
118
118
  "command_args",
119
119
  nargs=REMAINDER,
120
120
  help="Arguments to pass to the command (if applicable)",
@@ -0,0 +1 @@
1
+ __version__ = "0.1.33"
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "falyx"
3
- version = "0.1.31"
3
+ version = "0.1.33"
4
4
  description = "Reliable and introspectable async CLI action framework."
5
5
  authors = ["Roland Thomas Jr <roland@rtj.dev>"]
6
6
  license = "MIT"
@@ -1 +0,0 @@
1
- __version__ = "0.1.31"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes