-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v0.8.0-beta #25
Merged
v0.8.0-beta #25
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Moved several cova.ParseConfig options to Command.Config and Option.Config respectively for a more logical library interface and greater flexibility.
- Added `sub_cmds_mandatory` field to Command.Config and Command.Custom to allow library users to mandate that Sub Command be used if available for all Commands or individual Commands. - Changed output of cova.zig error messages to `log.err`.
- Added Config to Value.zig to enable the creation of custom Generic and Typed Values. - Adjusted the rest of the library to reflect this change.
- Added Custom to Value.zig to enable the creation of more flexible custom Generic and Typed Values. - Added Value.Config options for individual custom types and adding large ranges of bit widths for Ints/Uints. - Updated the rest of the library to use Value.Custom instead of Value.Generic.
- Ensured Mandatory Sub-Commands check for Usage/Help as Options as well as Commands.
- Updated the Goals Section of REAMDE.md to align with new usage of Issues for tracking goals by version.
- Updated build.zig to use `getEmittedDocs()`.
- Changed `Command.Custom.from()` to wrap methods for Struct/Union and Function "from" conversions. - Added `Command.Custom.callAs()` method to allow Commands converted from Functions to be called back as Functions. - Updated `Value.Custom.from()` to support Function Parameters in addition to Struct/Union fields.
- Changed `Command.Custom.fromStruct()` to `Command.Custom.fromType()` for Struct and Union conversions. - Updated `Command.Custom.to()` to support UnionFields in addition to StructFields. - Updated `Value.Custom.from()` to support Function Parameters in addition to Struct/Union fields.
- Added `checkSubCommand` for analyzing Commands with no subsequent Sub Commands for analysis. - Added `matchSubCommand` for analyzing Commands with subsequent Sub Commands for analysis.
- Implemented ignorable prefixes to `Command.Custom.FromConfig` to ignore specific fields when using `Command.Custom.from()`. - Implemented a syntax conversion flag to `Command.Custom.FromConfig` to change `zig_var_syntax` to `posix-arg-syntax`. - Added sane defaults as an optional fallback for missing Value fields. - Fixed errors with the conversions of certain types.
- Added `examples/basic_app` as a well documented example application utilizing Cova. - Added build option for `basic_app` via `zig build basic-app`.
- Added the `fn_self` parameter to allow Commands to be built from Zig "methods".
- Added `err_reaction` field `ParseErrorReaction` to `cova.ParseConfig`. - Added `cova.errReaction()` to handle reactions to parsing errors. - Closes #21
- Added `enable_opt_termination` to `cova.ParseConfig` as a configuration flag for terminating the parsing of Options if `--` (or whichever symbol is used for Option long names) is given by itself. - Closes #23
- Added `cova.tokenize_args()` and `cova.TokenizeConfig`. - Fixed small bug in `Command`. - Closes #22
- Updated Features w/ v0.8.0 updates. - Updated Examples to be more streamlined.
- Streamlined the README.md to be less cluttered and serve as a better launching point for newcomers. - Revised several sections of the Guides for both readability and v0.8.0 changes. - Fixed minor style issues across the library.
- Added a definition of Analysis with regards to Cova. - Fixed some missing information.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
checkSubCmd()
andmatchSubCmd()
methods in Command!examples/basic_app.zig
as a well-documented example of Cova's features in action!