Skip to content

Releases: joncloud/thor_net

2.0.0

12 Aug 03:29
bd09219
Compare
Choose a tag to compare
  • 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

22 May 21:44
Compare
Choose a tag to compare

Added support for controlling a program's exit code.
Implemented long descriptions for help documentation.
Solidified public APIs.

0.4.0

22 May 04:03
Compare
Choose a tag to compare

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.

0.3.0

20 May 20:52
Compare
Choose a tag to compare

Added support for subcommands.

0.2.1

20 May 02:07
Compare
Choose a tag to compare

Corrected required dependencies for .NET 4.5.1+.

0.2.0

20 May 02:00
Compare
Choose a tag to compare

Added support for .NET RC2.

0.1.0.1

15 Dec 01:15
Compare
Choose a tag to compare
Updated version.