Skip to content

DotMake.CommandLine v1.8.0

Compare
Choose a tag to compare
@calacayir calacayir released this 13 Feb 13:31
· 23 commits to main since this release
  • Switched to using latest daily builds of System.CommandLine (currently 2.0.0-beta4.24112.1).
    Since official 2.0.0-beta4.22272.1 release (dated 6/2/2022), System.CommandLine API is vastly changed
    so we migrated those changes to DotMake.CommandLine, this way we can get all the bug fixes.

    As daily builds are only published to Microsoft's private feed and not to official NuGet site,
    we dropped the dependency to System.CommandLine package and instead we are now bundling System.CommandLine DLLs inside our
    own NuGet package. Once System.CommandLine becomes GA and latest version is published to official NuGet site,
    we will readd the dependency to System.CommandLine package.

  • Renamed Global property in CliOptionAttribute to Recursive to match new System.CommandLine API.

  • In Cli.Run and Cli.RunAsync methods; configureBuilder, useBuilderDefaults, console parameters are removed and
    instead they now accept new CliSettings parameter, which is used to configure settings in one place.

  • In Cli.Parse methods return type is now ParseResult and ParseResult.Bind method can be used to get an instance for
    the command definition class.

  • InvocationContext in System.CommandLine latest builds, is removed so we added a new class named CliContext
    which supports command invocation by providing access to parse results and other services.