smart_arg_fork 3.1.0
smart_arg_fork: ^3.1.0 copied to clipboard
A smart command line argument parser for Dart that provides argument validation, static type checking, command execution, beautiful help generation and more.
3.1.0 #
- Added:
- async compatible
preandpostcommand hooks for ease of background processing before and after command executionpreCommandParsepostCommandParsepreCommandExecutepostCommandExecute
- async compatible
- Deprecated:
- non-async command hooks in favour of the async counterparts
beforeCommandParseafterCommandParsebeforeCommandExecuteafterCommandExecute
- non-async command hooks in favour of the async counterparts
3.0.1 #
- Fix:
- Invocation order of
before*andafter*command lifecycle callbacks
- Invocation order of
3.0.0 #
- Breaking:
- Converted
SmartArg.parseandSmartArgCommand.executeto be async
- Converted
2.4.0 #
- Added:
- Support for using extended classes of
SmartArgto be added as@Commands to otherSmartArgclasses.
- Support for using extended classes of
2.3.0 #
- Added:
- Support for parsing and validating
@EnumArguments
- Support for parsing and validating
2.2.0 #
- Added:
- Help text for
Commands can be specified as either@Command(help: '')or within the implementations@Parser(description: '').
- Help text for
2.1.1 #
- Fixed:
- Changed Help output to:
- Use a maximum of 80 columns
- Keep a consistent Command/Argument column width of 25 (introducing a linebreak on overflow)
- Sort commands by displayKey
- Changed Help output to:
- Style:
- Updated linting rules to help enforce more consitency
2.1.0 #
- Added:
- Support for SmartArg Argument inheritance defined in super classes or via mixins
- Support for SubCommands, including before/after command callback invocation
- Nullable
parentproperty toSmartArgandSmartArgCommandinstances
2.0.0 #
- Breaking:
- Upgraded for Null Type Safety. Requires minimum Dart version
2.12.0 - Upgraded reflectable to
3.0.4
- Upgraded for Null Type Safety. Requires minimum Dart version
- Added:
- Extra methods to
SmartArgfor handling lifecycle operations. Useful for DI instantiationbeforeCommandParsebeforeCommandExecuteafterCommandExecute
- Support for reading arguments from Environment Variables if not provided during parsing
- Extra methods to
- Fixed:
- Linter warnings
- Allow properties of classes extending
SmartArgto not require anArgumentannotation
- Miscellaneous:
- Upgraded dev_dependencies
- test to
^1.18.2 - build_runner to
^2.1.4 - build_test to
^2.1.4
- test to
- Replaced pandantic with lints
^1.0.1
- Upgraded dev_dependencies
1.1.2 #
- Updated dependencies pedantic, test, path, build_runner, build_test and reflectable
- Fixed new linting errors "unnecessary_brace_in_string_interps"
1.1.1 #
- Fixed linting errors from dartanalyzer
- Updated reflectable to 2.2.1
1.1.0 #
- Moved from dart:mirrors to source generation using reflectable
1.0.0+1 #
- Updated description in pubspec.yaml due to pub.dev Maintenance suggestions.
1.0.0 #
- Initial version