Skip to content

2.0.0

Latest
Compare
Choose a tag to compare
@joncloud joncloud released this 12 Aug 03:29
bd09219
  • 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.