| 1 |
Revision history for Commandable |
| 2 |
|
| 3 |
0.14 2024-09-07 |
| 4 |
[CHANGES] |
| 5 |
* Support discovering global options as attributes on package scalar |
| 6 |
variables in the SubAttributes finder |
| 7 |
|
| 8 |
0.13 2024-09-01 |
| 9 |
[CHANGES] |
| 10 |
* Added `->add_global_options` method to support global options |
| 11 |
* Support `=u` (unsigned) and `=f` (float) option types as well as |
| 12 |
arbitrary regexp match validation |
| 13 |
|
| 14 |
[BUGFIXES] |
| 15 |
* Ensure that hyphens are converted to underscores when setting |
| 16 |
default values for options |
| 17 |
* Ensure that mode=bool options always have a defined value, even if |
| 18 |
false |
| 19 |
|
| 20 |
0.12 2024-08-21 |
| 21 |
[CHANGES] |
| 22 |
* Moved `->parse_invocation` out of Command into Finder |
| 23 |
* Optional additional help text generated by the package that |
| 24 |
implements a given command |
| 25 |
* Use `meta` instead of `no strict refs` hackery |
| 26 |
* Avoid Test::NoWarnings |
| 27 |
|
| 28 |
0.11 2023-06-08 |
| 29 |
[CHANGES] |
| 30 |
* Added `$finder->find_and_invoke_list` convenience |
| 31 |
* Print information about `[no-]` prefix for negatable options in |
| 32 |
`help` output |
| 33 |
* Optionally require that options all come before non-option |
| 34 |
arguments |
| 35 |
* Optionally allow bundling of single-letter boolean options |
| 36 |
* Convert hyphens in option names to underscores when inserting their |
| 37 |
value into the options hash |
| 38 |
* Support integer-type checking in options |
| 39 |
* Added various docs |
| 40 |
|
| 41 |
[BUGFIXES] |
| 42 |
* Ensure that `$cinv->putback_tokens` escapes quotes |
| 43 |
|
| 44 |
0.10 2023-04-29 |
| 45 |
[CHANGES] |
| 46 |
* Add more types of option - negatable, incrementable, multi-value |
| 47 |
(much thanks to ilmari) |
| 48 |
* Use trailing `=` to indicate option names with values; to match |
| 49 |
Getopt::Long |
| 50 |
* Swap all unit tests from `Test::More` to `Test2::V0` |
| 51 |
|
| 52 |
0.09 2022-12-04 |
| 53 |
[CHANGES] |
| 54 |
* Added Commandable::Finder::MethodAttributes for handling commands |
| 55 |
provided by an object instance by capturing the instance itself in |
| 56 |
the code refs |
| 57 |
|
| 58 |
0.08 2022-07-13 |
| 59 |
[CHANGES] |
| 60 |
* Allow "slurpy" arguments |
| 61 |
* Added ->configure method to Finder, adding configuration options |
| 62 |
* Optionally permit multiple command invocations in one line |
| 63 |
|
| 64 |
[BUGFIXES] |
| 65 |
* Ensure the ->code field of Command instances is set by all Finder |
| 66 |
subclasses |
| 67 |
|
| 68 |
0.07 2022-04-25 |
| 69 |
[CHANGES] |
| 70 |
* Initial version of Commandable::Output API, an interface for user |
| 71 |
programs to customise the way output is displayed |
| 72 |
* Ensure that the 'help' builtin command uses Commandable::Output for |
| 73 |
all its printing |
| 74 |
* Convert underscores to hyphens in command names for |
| 75 |
Commandable::Finder::SubAttributes |
| 76 |
* More documentation on how to use Commandable::Finder::Packages |
| 77 |
|
| 78 |
0.06 2021-11-03 |
| 79 |
[CHANGES] |
| 80 |
* Initial support for declaring named options to commands |
| 81 |
* Also parse out commandline options |
| 82 |
* Include options in `help` output |
| 83 |
|
| 84 |
0.05 2021-10-10 |
| 85 |
[CHANGES] |
| 86 |
* Added Commandable::Finder::SubAttributes |
| 87 |
* Document the Commandable::Command result structure |
| 88 |
* Initial support for declaring positional arguments to commands |
| 89 |
* Assist with parsing command arguments out of invocation instances |
| 90 |
* Provide automatic built-in `help` command |
| 91 |
* Added some convenient wrappers for commandline scripts: |
| 92 |
+ Commandable::Finder::SubAttributes->new_for_main |
| 93 |
+ Commandable::Finder->find_and_invoke_ARGV |
| 94 |
|
| 95 |
0.04 2020-01-20 18:51:50 |
| 96 |
[CHANGES] |
| 97 |
* Renamed $inv->remaining to ->peek_remaining |
| 98 |
* Added Commandable::Finder::Packages |
| 99 |
|
| 100 |
0.03 2018-10-16 17:22:16 |
| 101 |
[CHANGES] |
| 102 |
* Added ->new_from_tokens |
| 103 |
|
| 104 |
0.02 2018-07-29 23:39:17 |
| 105 |
[CHANGES] |
| 106 |
* Added ->putback_tokens |
| 107 |
|
| 108 |
[BUGFIXES] |
| 109 |
* Make sure that "multiple" "quotes" are parsed correctly |
| 110 |
|
| 111 |
0.01 2018-06-07 13:10:15 |
| 112 |
Initial version with just Commandable::Invocation |