Skip to content

Releases: Cysharp/ConsoleAppFramework

Ver 3.1.0

04 Oct 09:28
Compare
Choose a tag to compare
  • Omit value type legend from boolean option #53, thanks @yfakariya
  • Allow specifying option description without short name with [Option(null, "description")] or [Option("", "description")], #51

Ver 3.0.0

01 Oct 00:46
6c3bd87
Compare
Choose a tag to compare

Improvement

  • New CommandAppFilter to hook event instead of Interceptor
  • New ConsoleAppOptions that can set StrictOption, ShowDefaultCommand, JsonSerializerOptions and GlobalFilters.
  • Class.Method routing to class method command (Class.Method command also work for backward compatibility)

Breaking Changes

  • Interceptor is removed, use CommandAppFilter instead.
  • JsonSerializerOptions get from ConsoleAppOptions

Ver 2.4.0

14 May 05:30
ddeb09e
Compare
Choose a tag to compare

Changes

Improvements and fixes

  • #40, #41 Respect the Index property value of OptionAttribute

Ver 2.3.0

28 Apr 06:25
Compare
Choose a tag to compare

Changes

Improvement

  • Support method return type as ValueTask, ValueTask<int>

Internal

  • CI was moved to GitHub Actions.

2.2.0

14 Apr 10:12
f6f44f6
Compare
Choose a tag to compare

Changes

Improvements

#38, #39 Run/UseConsoleAppFramework accepts assemblies to search for types.

RunConsoleAppFramework and UseConsoleAppFramework methods accept assemblies to search for types. By default, ConsoleAppFramework searches types in the running application's assemblies. If you want to specify assemblies to search for types, you can pass the assemblies to the method parameter(Assembly[]? searchAssemblies = null).

Ver 2.1.1

30 Mar 02:13
acc5167
Compare
Choose a tag to compare

Changes

Fixes

  • #35, #34 Fix OnMethodEndAsync and OnEngineCompleteAsync are called in reverse.

Ver 2.1.0

14 Feb 09:36
36e78db
Compare
Choose a tag to compare

Changes

Fixes

  • #32 Console app that contains a single command doesn't show the detail for help.

Breaking changes

help and version command is no longer supported if an app has only one command.

Use -help or -version option instead of those commands.

$ myapp -help
Usage: myapp
...

$ myapp -version
1.0.0

If an app provides one or more named commands, help command is still available.

$ myapp help
Usage: myapp <Command>

Commands:
  foo
  bar

$ myapp help foo
Usage: myapp foo
...

Ver 2.0.2

27 Jan 14:58
Compare
Choose a tag to compare

Fix help option when no argument passed.

Ver 2.0.1

14 Jan 03:39
c5eac8a
Compare
Choose a tag to compare

OperationCanceledException by user code should not be handled. #30

Ver 2.0.0

14 Jan 03:39
2bb735e
Compare
Choose a tag to compare
  • Application name has been changed, MicroBatchFramework -> ConsoleAppFramework
  • removed BatchHost(use Host instead)
  • BatchBase -> ConsoleAppBase
  • Use/RunBatchEngineAsync -> Use/RunConsoleAppFrameworkAsync
  • remove list default command
  • default help command accepts -help, --help
  • add version default command that shows AssemblyInformationalVersion or AssemblylVersion
  • command help accepts help [command] and [command] -help
  • add ReplaceToSimpleConsole loggerBuilder extension