Releases: joncloud/thor_net
Releases · joncloud/thor_net
2.0.0
- Fixes an issue where
help
would be displayed under subcommand help - Allows recursive subcommands to display
help
- Ensures prefix is consistent for aliases (Fixes #18)
- Adds TargetInvocationException handling (Fixes #19)
- Adds the ability to alias commands (Fixes #23)
- Breaking Replaces sync API with async API
- Breaking Retargets to
netstandard2.0
- Implements better support for enum options (Fixes #20)
Breaking Changes
Replaces sync API with async API
The synchronous ThorNet.Thor.Start(string[])
API has been replaced with an asynchronous API ThorNet.Thor.StartAsync(string[])
. In order to account for the change, make sure to handle the return Task<int>
through asynchronous best practices. For example see the original and new example to call:
Original Example
public static int Main(string[] args) =>
Start<Program>(args);
New Example
public static Task<int> Main(string[] args) =>
StartAsync<Program>(args);
Retargets to netstandard2.0
Ensure that your project targets .NET Core 2.0+, or .NET Framework 4.6.1. For more details, see Microsoft's .NET Standard.
1.0.0
0.4.0
Updates to flags and options:
- Fixed aliases.
- Support for class level flags and options.
Several help fixes:
- Added sorting and alignments for descriptions and examples.
- Removed redundant help when displaying subcommands.
Improved messaging when users enter missing or invalid parameters.