Tags: patriksvensson/spectre.console
Tags
Add option to configure the style of the choices list and the default… … value in TextPrompt (spectreconsole#681) * Allow setting the style of the default value in TextPrompt Add property "DefaultValueStyle" to TextPrompt which allows setting the style in which the default value is rendered. When no style is set, the value is displayed as green text, keeping the existing behavior. * Allow setting the style in which a TextPrompt's choices are displayed Add property "ChoicesStyle" to TextPrompt which allows setting the style in the prompt's choices are rendered. When no style is set, choices are displayed as blue text, keeping the existing behavior.
Fix exception formatting for generic methods (spectreconsole#639) The generic parameters were double escaped and would display as `[[T0,T1,TRet]]` instead of `[T0,T1,TRet]`. This is because the `builder.AppendWithStyle` method already escapes its value so the caller must not escape the passed value.
Add blog to docs (spectreconsole#484) * Adding social card infrastructure * Upgrades doc project to .NET 6 * Adds Playwright * Changes the console to a web project for Playwright * Adds social card template * Added blog content * Parallelized social image processing * Updating CI to use .NET 6 for docs build
Removes automatic registration of settings Original intention was to register Settings automatically for DI. This ran into problem when the container verifies the configuration is valid for a settings using the constructor for initialization. It tries to resolve the parameters and fails. This removes the automatic registration and falls back ActivatorCreateInstance when no Setting is registered.
Fix dividing with infinity bug When calculating the remaining time for a progress task, we divide the value delta with the current speed. If the speed is zero, then the resulting double will be 'infinity' which will lead to TimeSpan.FromSeconds throwing. This commit fixes that bug by setting the speed to 1 if it's 0 when calculating the remaining time. Closes spectreconsole#169
PreviousNext