Commit Graph

66 Commits

Author SHA1 Message Date
Roland Thomas Jr b24079ea7e
Add ExecutionContext.signature, fix partial command matching with arguments, fix passing args to Falyx._create_context helper 2025-06-05 17:23:27 -04:00
Roland Thomas Jr ac82076511
Add filtering and options for History Command 2025-06-03 23:07:50 -04:00
Roland Thomas Jr 09eeb90dc6
Bubble up errors from CAP, catch a broader exception when parsing arguments, add type parsing to arg_metadata 2025-06-02 23:45:37 -04:00
Roland Thomas Jr e3ebc1b17b
Fix validation for empty input 2025-06-01 23:12:53 -04:00
Roland Thomas Jr 079bc0ee77
Normalize epilogue -> epilog, allow version to be modifiable, don't allow empty input in repl 2025-06-01 23:02:35 -04:00
Roland Thomas Jr 1c97857cb8
Centralize CAP creation in Command, Add better default type coercion 2025-06-01 17:38:48 -04:00
Roland Thomas Jr 21af003bc7
Update help formatting, allow help to be filtered by tag 2025-05-31 21:51:08 -04:00
Roland Thomas Jr 1585098513
Add init init-global to subparsers 2025-05-31 09:29:24 -04:00
Roland Thomas Jr 3d3a706784
Formatting of help text 2025-05-30 21:52:29 -04:00
Roland Thomas Jr 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
Roland Thomas Jr 8a3c1d6cc8
Fix global-init imports, passing args from command line to required commands 2025-05-28 17:11:26 -04:00
Roland Thomas Jr f196e38c57
Add ProcessPoolAction, update CAP to look only at keywords correctly 2025-05-28 00:58:50 -04:00
Roland Thomas Jr fb1ffbe9f6
Add ArgumentAction.ACTION, support POSIX bundling in CAP, Move all Actions to their own file 2025-05-25 19:25:32 -04:00
Roland Thomas Jr 429b434566
Remove emojis from logging statements 2025-05-24 17:53:34 -04:00
Roland Thomas Jr 4f3632bc6b
Remove emojis from logging statements 2025-05-24 15:09:39 -04:00
Roland Thomas Jr ba562168aa
hotfix syntax error < python3.12 2025-05-24 13:46:07 -04:00
Roland Thomas Jr 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
Roland Thomas Jr b0c0e7dc16
Fix run_group parser for REMAINDER, fix render_help formatting 2025-05-22 14:59:16 -04:00
Roland Thomas Jr 0a1ba22a3d
Remove args/kwargs being passed to generated Action from FactoryAction 2025-05-21 23:35:57 -04:00
Roland Thomas Jr 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
Roland Thomas Jr 3c0a81359c
Make auto_args default fallback, integrate io_actions with argument parsing 2025-05-19 20:03:04 -04:00
Roland Thomas Jr 4fa6e3bf1f Merge pull request 'Add auto_args' (#3) from argparse-integration into main
Reviewed-on: #3
2025-05-18 22:27:27 -04:00
Roland Thomas Jr afa47b0bac
Add auto_args 2025-05-18 22:24:44 -04:00
Roland Thomas Jr 70a527358d Merge pull request 'Add CommandArgumentParser and integrate argument parsing from cli and menu prompt' (#2) from command-arg-parser into main
Reviewed-on: #2
2025-05-17 21:14:28 -04:00
Roland Thomas Jr 62276debd5
Add CommandArgumentParser and integrate argument parsing from cli and menu prompt 2025-05-17 21:10:50 -04:00
Roland Thomas Jr b14004c989
Add UserInputAction, coerce ActionFactoryAction to be async, add custom tables for MenuAction, Change Exit Command to use X 2025-05-14 20:28:28 -04:00
Roland Thomas Jr bba473047c
Add loading submenus from config or Falyx object, more examples 2025-05-13 23:19:29 -04:00
Roland Thomas Jr 2bdca72e04
Create action submodule, add various examples 2025-05-13 20:07:31 -04:00
Roland Thomas Jr 87a56ac40b
Linting 2025-05-13 00:18:04 -04:00
Roland Thomas Jr e999ad5e1c
Add better starter examples init.py, change validation in config.py, add add_command_from_command 2025-05-11 14:32:12 -04:00
Roland Thomas Jr 5c09f86b9b
Add help_text to preview, preview to menu, error handling for imports, summary printing for run and run-all, mandatory kwargs for most arguments 2025-05-10 09:56:48 -04:00
Roland Thomas Jr 9351ae658c
Add SelectFileAction, Remove GrepAction, UppercaseIO 2025-05-10 01:08:34 -04:00
Roland Thomas Jr 76e542cfce
Add ActionFactoryAction, Add mode flags for Falyx, Rename inject_last_result_as -> inject_into 2025-05-09 23:43:36 -04:00
Roland Thomas Jr ad803e01be
Add register_teardown, Rename session -> prompt_session, Add sets, tuples to SelectionAction 2025-05-08 22:10:05 -04:00
Roland Thomas Jr 53729f089f
Remove always_confirm 2025-05-08 00:56:16 -04:00
Roland Thomas Jr 7616216c26
Increment version 2025-05-08 00:53:49 -04:00
Roland Thomas Jr 26aab7f2d5
Fix HTTPAction close logic 2025-05-08 00:51:34 -04:00
Roland Thomas Jr 880d86d47d
Move spinner and confirmation logic from Falyx to Command 2025-05-08 00:45:24 -04:00
Roland Thomas Jr 05a7f982f2
Add test 2025-05-06 23:05:20 -04:00
Roland Thomas Jr 5d96d6d3d9
Change headless -> run_key, Add previews, _wrap_literal -> _wrap 2025-05-06 22:56:45 -04:00
Roland Thomas Jr b5da6b9647
Add dependencies 2025-05-05 22:41:42 -04:00
Roland Thomas Jr 2fee87ade9
Add tests for __main__.py 2025-05-05 18:32:57 -04:00
Roland Thomas Jr 6f159810b2
Add tests for __main__.py 2025-05-05 18:26:24 -04:00
Roland Thomas Jr a90c447d5c
Add init init-global 2025-05-04 20:13:25 -04:00
Roland Thomas Jr f9cb9ebaef
Change color -> style, Add SelectionOption 2025-05-04 19:35:44 -04:00
Roland Thomas Jr 91c4d5481f
Add MenuAction, SelectionAction, SignalAction, never_prompt(options_manager propagation), Merged prepare 2025-05-04 14:11:03 -04:00
Roland Thomas Jr 69b629eb08
Fix logic error print menu 2025-05-01 22:46:41 -04:00
Roland Thomas Jr f6316599d4
Update __main__.py to sync entrypoint 2025-05-01 22:41:06 -04:00
Roland Thomas Jr b51c4ba4f7
Update pyproject.toml 2025-05-01 22:37:58 -04:00
Roland Thomas Jr 2d879561c9
Change __main__ to load falyx config from predefined locations 2025-05-01 22:32:36 -04:00