fa5e2a4c2c
feat: add TLDR ArgumentAction and Rich-compatible prompt styling
...
- Introduce `ArgumentAction.TLDR` for showing concise usage examples
- Add `rich_text_to_prompt_text()` to support Rich-style markup in all prompt_toolkit inputs
- Migrate all prompt-based Actions to use `prompt_message` with Rich styling support
- Standardize `CancelSignal` as the default interrupt behavior for prompt-driven Actions
2025-07-22 21:56:44 -04:00
7f63e16097
feat: Add module docs, Enum coercion, tracebacks, and toggle improvements
...
- Add comprehensive module docstrings across the codebase for better clarity and documentation.
- Refactor Enum classes (e.g., FileType, ConfirmType) to use `_missing_` for built-in coercion from strings.
- Add `encoding` attribute to `LoadFileAction`, `SaveFileAction`, and `SelectFileAction` for more flexible file handling.
- Enable lazy file loading by default in `SelectFileAction` to improve performance.
- Simplify bottom bar toggle behavior: all toggles now use `ctrl+<key>`, eliminating the need for key conflict checks with Falyx commands.
- Add `ignore_in_history` attribute to `Command` to refine how `ExecutionRegistry` identifies the last valid result.
- Improve History command output: now includes tracebacks when displaying exceptions.
2025-07-19 14:44:43 -04:00
21402bff9a
Fix never_prompt precedence in BaseAction, Allow default_selection to be resolved from index, keys, values, or description
2025-07-18 21:51:25 -04:00
9b9f6434a4
Add completions, Add suggestions list to Argument
2025-07-17 20:09:29 -04:00
68d7d89d64
Add ArgumentAction.STORE_BOOL_OPTIONAL, Add BreakChainSignal
2025-07-14 21:59:12 -04:00
4c1498121f
Add falyx.console for single rich.console.Console instance, Add ConfirmAction, SaveFileAction, Add lazy evaluation for ArgumentAction.ACTION
2025-07-12 11:52:02 -04:00
ed42f6488e
Add FalyxCompleter, Add check for valid directory for SelectFileAction, Add more detail to error messages in CommandArgumentParser, Don't initialize CAP if a custom parser is used
2025-07-03 00:58:57 -04:00
bb325684ac
Add LoadFileAction, Rename ActionFactoryAction->ActionFactory, Rename falyx.action.mixins->falyx.action.action_mixins, fix bug unable to parse negative numbers in CommandArgumentParser
2025-06-27 22:33:14 -04:00
53ba6a896a
Add multi selecto to SelectionAction and SelectFileAction, Allow IOActions to receive no input, Rename subpackage falyx.parsers -> falyx.parser, Add default_text to UserInputAction
2025-06-08 12:09:16 -04:00
1c97857cb8
Centralize CAP creation in Command, Add better default type coercion
2025-06-01 17:38:48 -04:00
c2eb854e5a
Add help_text for commands to argparse run subcommand, change the way Falyx.run works and you can only pass FalyxParsers
2025-05-30 00:36:55 -04:00
f196e38c57
Add ProcessPoolAction, update CAP to look only at keywords correctly
2025-05-28 00:58:50 -04:00
fb1ffbe9f6
Add ArgumentAction.ACTION, support POSIX bundling in CAP, Move all Actions to their own file
2025-05-25 19:25:32 -04:00
ddb78bd5a7
Add PromptMenuAction, add cancel button to SelectionAction, make get_command async, add Action validation and defauilt nargs to None.
2025-05-24 12:29:16 -04:00
b51ba87999
Add cancel for SelectionActions, Add args/kwargs to ActionFactoryAction, remove requires_input detection, add return types to SelectionAction, add option to hide_menu_table
2025-05-21 23:18:45 -04:00
afa47b0bac
Add auto_args
2025-05-18 22:24:44 -04:00
62276debd5
Add CommandArgumentParser and integrate argument parsing from cli and menu prompt
2025-05-17 21:10:50 -04:00
2bdca72e04
Create action submodule, add various examples
2025-05-13 20:07:31 -04:00
87a56ac40b
Linting
2025-05-13 00:18:04 -04:00
9351ae658c
Add SelectFileAction, Remove GrepAction, UppercaseIO
2025-05-10 01:08:34 -04:00
05a7f982f2
Add test
2025-05-06 23:05:20 -04:00
5d96d6d3d9
Change headless -> run_key, Add previews, _wrap_literal -> _wrap
2025-05-06 22:56:45 -04:00
b5da6b9647
Add dependencies
2025-05-05 22:41:42 -04:00
2fee87ade9
Add tests for __main__.py
2025-05-05 18:32:57 -04:00
6f159810b2
Add tests for __main__.py
2025-05-05 18:26:24 -04:00
91c4d5481f
Add MenuAction, SelectionAction, SignalAction, never_prompt(options_manager propagation), Merged prepare
2025-05-04 14:11:03 -04:00
e91654ca27
Linting, pre-commit
2025-05-01 20:26:50 -04:00
4b1a9ef718
Add retry_utils, update docstrings, add tests
2025-05-01 00:35:36 -04:00
80de941335
Hide ioactions, Add doc strings, Add tests
2025-04-29 16:34:20 -04:00
3c75b5db3a
Initial
2025-04-14 22:14:12 -04:00