build_cli 2.2.0
build_cli: ^2.2.0 copied to clipboard
Parse command line arguments directly into an annotation class using the power of build_runner and source_gen.
2.2.0 #
- Generate a
Commandhelper class when (the new)CliOptions.createCommandfield istrue.
2.1.6 #
- Support the latest
package:analyzer.
2.1.5 #
- Add trailing commas to many places in output.
- Fix issues with latest
package:analyzerrelated to enums and annotations.
2.1.4 #
- Require the latest
package:source_helper. - Support the latest
package:analyzer.
2.1.3 #
- Support the latest
package:analyzer.
2.1.2 #
- Require the latest
package:build_config.
2.1.1 #
- Change the name of the private
Mapused to support enums so that it does not conflict with the one generated bypackage:json_serializable.
2.1.0 #
- Improve generation of null-safe code.
- Migrate implementation to null-safe.
2.0.1 #
- Require
package:build^2.0.0.
2.0.0 #
- Support generating null-safe code.
- Require Dart SDK
>=2.12.0 <3.0.0.
1.3.10 #
- Require Dart SDK
>=2.7.0 <3.0.0. package:analyzer>=0.39.0 <0.41.0.
1.3.9 #
- Avoid
avoid_redundant_argument_valueslint in generated code fordefaultValue.
1.3.8 #
- Avoid
avoid_redundant_argument_valueslint.
1.3.7 #
- Support
package:build_cli_annotations>=1.1.0 <1.3.0. package:analyzer^0.39.0.
1.3.6 #
- Support the latest release of
package:analyzer.
1.3.5 #
- Fix issue with behavior change in recent
package:analyzerreleases.
1.3.4 #
- Support the latest release of
package:analyzer.
1.3.3 #
- Support the latest release of
package:analyzer.
1.3.2 #
- Support the latest release of
package:build_config. - Removed special handling of undefined types due to changes in
package:analyzer. These types are now treated asdynamic.
1.3.1 #
- Support the latest release of
package:analyzer.
1.3.0 #
- Added support for the new
provideDefaultToOverridevalue onCliOptionto allow users to provide an override todefaultsToby including an optional[fieldName]DefaultOverrideparam to the generated_$populate[ClassName]Parserfunction. - Handle kebab-case enum value names correctly, including when they are used as default values.
- Handle allowed values that require escaping.
- Support classes with one, non-default constructor.
- Require Dart
>=2.2.0 <3.0.0.
1.2.2 #
- Support the latest release of
package:analyzer.
1.2.1 #
- Generate all local variables as
finalwhere applicable. Allows consumers to enable theprefer_final_localslint.
1.2.0 #
- Require Dart 2.0 "gold" in the target package.
- Omit
newkeyword in generated code. - Update
package:analyzerconstraint to>=0.33.0 <0.35.0.
1.1.0 #
- Support nullable annotation
1.0.2 #
- Support the latest release of
package:analyzer.
1.0.1 #
- Support
package:buildv1.
1.0.0 #
- Support
package:build_cli_annotationsv1.
0.2.6 #
- Helper methods that were previously generated inline within functions are now generated as top-level functions and shared.
0.2.5 #
-
Require
package:source_gen^0.9.0. -
The
headerconfiguration option is no longer supported. (It's ignored.)
0.2.4+1 #
- Support Dart 2 stable.
0.2.4 #
- Support the latest version of
package:build_config.
0.2.3 #
- Require the latest
package:analyzer. - Support convert functions with optional parameters.
0.2.2 #
- Added support for populating
ArgResults commandif the field is not annotated. - Improved error output, including in cases where a bug may be found.
0.2.1 #
- Added support for
coverttoCliOption. - Throw many more errors during build that would create invalid code at runtime.
0.2.0 #
-
Fail unless the minimum SDK constraint on the target package is at least
2.0.0-dev.48. -
Added for support
valueHelptoCliOption.
0.1.2 #
- Support
int,double, andnumfor options. - Improve error messages for some failures.
- Support
defaultsTofor flags. - Generate another private method
_$populate[OptionClassName]Parser. Allows usage for already existingArgParserinstances, such as withpackage:argsCommandRunner.
0.1.1+1 #
- Fix link to
package:peanutusage example.
0.1.1 #
- Add setup instructions to
README.md. - Use the logger built into
pkg:build. - Don't generate CLI entries for unassignable fields.
- Support latest
pkg:source_gen. - Properly escape
Stringliterals.
0.1.0 #
- First release