Commit Graph

71 Commits

Author SHA1 Message Date
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
38f5f1e934 Rename falyx.action.types.FileReturnType -> falyx.action.action_types.FileType, falyx.action.base -> falyx.action.base_action, argparse tweaks for custom cli programs 2025-06-10 23:03:09 -04:00
2d1177e820 Update command import 2025-06-08 14:45:41 -04:00
3c7ef3eb1c Move ShellAction to action/shell_action.py, Move Argument, ArgumentAction, and CommandArgumentParser to seperate files 2025-06-08 14:31:24 -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
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
ac82076511 Add filtering and options for History Command 2025-06-03 23:07:50 -04:00
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
e3ebc1b17b Fix validation for empty input 2025-06-01 23:12:53 -04:00
079bc0ee77 Normalize epilogue -> epilog, allow version to be modifiable, don't allow empty input in repl 2025-06-01 23:02:35 -04:00
1c97857cb8 Centralize CAP creation in Command, Add better default type coercion 2025-06-01 17:38:48 -04:00
21af003bc7 Update help formatting, allow help to be filtered by tag 2025-05-31 21:51:08 -04:00
1585098513 Add init init-global to subparsers 2025-05-31 09:29:24 -04:00
3d3a706784 Formatting of help text 2025-05-30 21:52:29 -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
8a3c1d6cc8 Fix global-init imports, passing args from command line to required commands 2025-05-28 17:11:26 -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
429b434566 Remove emojis from logging statements 2025-05-24 17:53:34 -04:00
4f3632bc6b Remove emojis from logging statements 2025-05-24 15:09:39 -04:00
ba562168aa hotfix syntax error < python3.12 2025-05-24 13:46:07 -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
b0c0e7dc16 Fix run_group parser for REMAINDER, fix render_help formatting 2025-05-22 14:59:16 -04:00
0a1ba22a3d Remove args/kwargs being passed to generated Action from FactoryAction 2025-05-21 23:35:57 -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
3c0a81359c Make auto_args default fallback, integrate io_actions with argument parsing 2025-05-19 20:03:04 -04:00
4fa6e3bf1f Merge pull request 'Add auto_args' (#3) from argparse-integration into main
Reviewed-on: #3
2025-05-18 22:27:27 -04:00
afa47b0bac Add auto_args 2025-05-18 22:24:44 -04:00
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
62276debd5 Add CommandArgumentParser and integrate argument parsing from cli and menu prompt 2025-05-17 21:10:50 -04:00
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
bba473047c Add loading submenus from config or Falyx object, more examples 2025-05-13 23:19:29 -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
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
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
9351ae658c Add SelectFileAction, Remove GrepAction, UppercaseIO 2025-05-10 01:08:34 -04:00
76e542cfce Add ActionFactoryAction, Add mode flags for Falyx, Rename inject_last_result_as -> inject_into 2025-05-09 23:43:36 -04:00
ad803e01be Add register_teardown, Rename session -> prompt_session, Add sets, tuples to SelectionAction 2025-05-08 22:10:05 -04:00
53729f089f Remove always_confirm 2025-05-08 00:56:16 -04:00
7616216c26 Increment version 2025-05-08 00:53:49 -04:00
26aab7f2d5 Fix HTTPAction close logic 2025-05-08 00:51:34 -04:00
880d86d47d Move spinner and confirmation logic from Falyx to Command 2025-05-08 00:45:24 -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
a90c447d5c Add init init-global 2025-05-04 20:13:25 -04:00
f9cb9ebaef Change color -> style, Add SelectionOption 2025-05-04 19:35:44 -04:00