Skip to content

Releases: natemcmaster/CommandLineUtils

4.1.1

19 Feb 05:02
10d0155
Compare
Choose a tag to compare

How to get this update

Packages have been posted to these feeds:

NuGet.org

https://nuget.org/packages/McMaster.Extensions.CommandLineUtils/4.1.1
https://nuget.org/packages/McMaster.Extensions.Hosting.CommandLine/4.1.1

GitHub Package Registry

https://github.com/natemcmaster?tab=packages&repo_name=CommandLineUtils

What's Changed

  • Fix unknown command throws System.InvalidOperationException: Enumeration already finished by @sallerga in #542

New Contributors

Full Changelog: v4.1.0...v4.1.1

4.1.0

26 Aug 05:11
Compare
Choose a tag to compare

How to get this update

Packages have been posted to these feeds:

NuGet.org

https://nuget.org/packages/McMaster.Extensions.CommandLineUtils/4.1.0
https://nuget.org/packages/McMaster.Extensions.Hosting.CommandLine/4.1.0

GitHub Package Registry

https://github.com/natemcmaster?tab=packages&repo_name=CommandLineUtils

What's Changed

New Contributors

Full Changelog: v4.0.2...v4.1.0

4.0.2

19 Nov 23:10
2193138
Compare
Choose a tag to compare

4.0.1

01 Feb 00:50
171cf80
Compare
Choose a tag to compare

Fixes

  • @xoofx: use explicit constructors on validation attributes to workaround .NET 6 runtime trimming error (#491)
  • @jakubqwe: support the Description field of VersionOptionFromMemberAttribute (#490)

See also https://github.com/natemcmaster/CommandLineUtils/blob/main/CHANGELOG.md

How to get this update

Packages have been posted to these feeds:

NuGet.org

https://nuget.org/packages/McMaster.Extensions.CommandLineUtils/4.0.1
https://nuget.org/packages/McMaster.Extensions.Hosting.CommandLine/4.0.1

GitHub Package Registry

https://github.com/natemcmaster?tab=packages&repo_name=CommandLineUtils

4.0.0

27 Dec 01:04
1cb2c24
Compare
Choose a tag to compare

Features

  • [@scott-xu] and [@natemcmaster]: feature: add API for setting default value on options and arguments, and display them in help text (#389 and #420)
  • [@natemcmaster]: cleanup: make .Values read-only on CommandArgument/Option (#406)
  • [@natemcmaster]: Make options, arguments, and commands read-only collections on CommandLineApplication (#407)

Fixes

  • [@natemcmaster]: fix: pass the generic argument version in callback on .Option() and Argument() (#405)
  • [@natemcmaster]: add .NET Standard 2.1 and fix nullable type references (#424 and #425)
  • [@natemcmaster]: fix new CI to correctly publish symbols to nuget.org
  • [@scott-xu]: show option types in help text when OptionAttribute.Template is set (#429)
  • [@skirchner989]: change to not throw when a validator is not of type AttributeValidator (#431)
  • [@natemcmaster]: don't mask OperationCanceledException triggered by SIGINT ([#483])

Other

See more details in https://github.com/natemcmaster/CommandLineUtils/blob/main/CHANGELOG.md.

How to get this update

Packages have been posted to these feeds:

NuGet.org

https://nuget.org/packages/McMaster.Extensions.CommandLineUtils/4.0.0
https://nuget.org/packages/McMaster.Extensions.Hosting.CommandLine/4.0.0

GitHub Package Registry

https://github.com/natemcmaster?tab=packages&repo_name=CommandLineUtils

4.0.0-beta.74

22 Jan 04:36
042f4a9
Compare
Choose a tag to compare
4.0.0-beta.74 Pre-release
Pre-release

Fixes

@natemcmaster: fix new CI to correctly publish symbols to nuget.org
@scott-xu: show option types in help text when OptionAttribute.Template is set (#429)
@skirchner989: change to not throw when a validator is not of type AttributeValidator (#431)

Notes

Packages have been posted to these feeds:

NuGet.org

https://nuget.org/packages/McMaster.Extensions.CommandLineUtils/4.0.0-beta.74
https://nuget.org/packages/McMaster.Extensions.Hosting.CommandLine/4.0.0-beta.74

GitHub Package Registry

https://github.com/natemcmaster?tab=packages&repo_name=CommandLineUtils

4.0.0-beta.56

17 Jan 06:28
9dfc809
Compare
Choose a tag to compare

3.1.0

10 Jan 00:24
Compare
Choose a tag to compare

Get the update from https://www.nuget.org/packages/McMaster.Extensions.CommandLineUtils/3.1.0

Improvements

  • @scott-xu: Show allowed values in help text (#369)
  • @scott-xu: Generic Hosting: add overload of RunCommandLineApplicationAsync to support configuring of CommandLineApplication (#363)
  • @danielmeza: implement API on host builder to fetch CommandLineContext from non DI contexts (#368)
  • @hellfirehd and @cbcrouse: feature: add API to allow calling UseCommandLineApplication prior to Run*Async() (#409 and #415)

Bug fixes

  • @natemcmaster: ensure clustering options is detected correctly when subcommands added via AddSubcommand (#393)
  • @scott-xu: make UnrecognizedArgumentHandling per command scope (#371)
  • @scott-xu: show allowed values in help text correctly when multiple AllowedValuesAttribute are used (#375)
  • @scott-xu: show allowed values in help text for Nullable/ValueTuple<bool,T> option/argument (#390)
  • @scott-xu: update help text to show allowed values from AllowedValues attribute instead of Enum values (#391)

Docs

Other

Changes:

  • 9f57dfe Update changelog and releasenotes
  • 9b91cfb Move PublicAPI to 'shipped'
  • 2c3b8b5 cleanup: upgrade dependencies
  • f5938c8 cleanup: further code deduplication on new hosting APIs (#416)
  • 643f9c3 refactor: code deduplication and added/fixed tests for new hosting APIs (#415)
  • 47d1194 feature: expand Microsoft.Extensions.Hosting support to allow work to be done prior to Run*Async() (#409)
  • bcf20ed cleanup: update .editorconfig
  • df0a511 cleanup: fixup more references to 'master'
  • 7d705cc cleanup: upgrade Linux CI to latest ubuntu version (#412)
  • 29ecc17 cleanup: upgrade test projects and CI to .NET 5 (#411)
See More
  • 760247d fix: late bind parsers for attribute-discovered options & arguments (#398)
  • 4f686fe fix: treat null as 'true' by default when parsing Nullable types on command options (#397)

This list of changes was auto generated.

3.1.0-rc.371

07 Nov 22:15
e621724
Compare
Choose a tag to compare
3.1.0-rc.371 Pre-release
Pre-release

Changes:

  • e621724 docs: update changelog.md and releasenotes for 3.1 release
  • 2d6365e cleanup: update test dependencies
  • 4b13f2e Fix Readme.md on Prompt.GetYesNo (#402)

This list of changes was auto generated.

3.1.0-beta.356

13 Sep 18:19
Compare
Choose a tag to compare
3.1.0-beta.356 Pre-release
Pre-release

Changes:

  • 14db834 Add dotnet-format to build.ps1
  • c4547a6 cleanup: run dotnet-format on samples
  • 0309d1c cleanup: exclude TestResults in solution explorer
  • f160e87 cleanup: run code formatters and cleanups
  • 21a73b3 fix: ensure clustering options is detected correctly when subcommands added via AddSubcommand (#393)
  • 0c9fe6b fix: show allowed values in help text for Nullable/ValueTuple<bool,T> option/argument (#390)
  • 569b913 fix: update help text to show allowed values from AllowedValues attribute instead of Enum values (#391)

This list of changes was auto generated.