Typin v3.1.0 Release Notes
-
- .NET 6 support (including
DateOnly
andTimeOnly
). - Added
InteractiveModeOptions.Prompt
,InteractiveModeOptions.SetDefaultPrompt()
andInteractiveModeOptions.SetPrompt()
for specifying custom prompt template.PromptForeground
andScopeForeground
can still be used to configure foreground without changing prompt template. - Added support for custom binding converters
BindingConverter<T>
- seeArgumentBindingConverterTests
for examples. - Added
BindableArgument
andBindableArgument.Bindable
, as well as markedArgumentSchema.Property
,ArgumentSchema.IsScalar
, andArgumentSchema.GetValidValues()
obsolete - will be removed in Typin 4.0. BindableArgument.IsScalar
andBindableArgument.GetValidValues()
are now optimized with a simple cache (backing field).- Faster
Guid
binding by explicitGuid.Parse()
call (addedGuid
toArgumentBinder.PrimitiveConverters
). - Changed default values format in help - now in round brackets.
- Fixed
StackTraceParser
: add a filter for--- End of stack trace from previous location ---
and--- End of stack trace from previous location where exception was thrown ---
. - Fixed invalid help text:
Environment variable:
instead ofFallback variable:
. - Fixed default version format (complex versions like
3.0.0-beta1
were incorrectly dispalyed as3.0.0
). - Fixed console not being disposed when stopping the application (for consoles that were created within
CliApplicationBuilder
). - Fixed showing choices for non-scalar nullable and non-nullable enum arguments.
- Fixed dependency injection
IDisposable
anti-pattern inIConsole
-IDisposable
is no longer present inIConsole
. If you wish to use it, implement it inIConsole
implementation. - Removed
IDisposable
fromCliContext
.
- .NET 6 support (including