Repository navigation
Repl 0.12.1 adds first-class .NET 11 support. Every package now ships for net10.0 and net11.0, a handler can return a C# 15 union, and Repl honours FORCE_COLOR the way .NET 11 does. No public API changed, but the colour and terminal-control rules changed observable behaviour in a few places: read Behaviour changes before upgrading, and upgrade Repl.Spectre together with Repl.Core.
Highlights
- .NET 11. All packages target
net10.0andnet11.0, validated against the 0.12.0 packages; the repository builds and tests with the .NET 11 SDK on both runtimes (#196, #197). Running on .NET 11 covers C# 15,FORCE_COLOR,dotnet watch,dotnet run -e, and dotnetup per-user installs seen from MCP agent hosts (#203). - C# 15 union results. On
net11.0, a handler can return aunion; Repl processes the active case as if the handler had returned it directly: exit codes,IReplResultclassification, every output format, middleware andRepl.Testingall see the case (#199). See Union return values. FORCE_COLOR. Any non-empty value, even0, turns colour on, ahead ofNO_COLOR, as .NET 11 does in its console logger, so one variable colours both (#198).- Colour and terminal control are decided separately. Colour forced onto a file or a pipe no longer brings screen clearing, arrow-key menus, shell-integration marks or progress sequences with it (#198). See ANSI Detection.
Behaviour changes
All from #198:
- With
FORCE_COLORandNO_COLORboth set, output used to be plain and is now coloured. CLICOLOR_FORCE=1on redirected output no longer clears the screen or enables arrow-key menus there; underAnsiMode.Always, the screen clear now needs a terminal.- A hosted client that advertises ANSI only through capability flags now gets the screen clear and the full-screen pager.
ITerminalInfo.IsAnsiSupportednow answers "may the handler drive the terminal": it isfalseon redirected output underCLICOLOR_FORCE=1. TestPalette is not nullto decide on colour. SeeITerminalInfo.- A Spectre console that is coloured where the terminal may not be driven is no longer interactive: live displays print static lines, Repl's text prompts replace Spectre's, and a prompt on an injected
IAnsiConsolefails there. UpgradeRepl.Spectretogether withRepl.Core:Repl.Spectre0.12.0 takes forced colour from the new core but not the rule that keeps its live displays out of a redirected output.
Other changes
- Docs: setting up shell completion through
dotnet myapp.dllwrites a PowerShell completer that does not answer; set it up from the app's own executable (#203). Union results are labelled C# 15, and theSystem.Consolebehaviour underFORCE_COLORis described per platform (#206). - CI and tests: the release job installs the .NET 11 SDK (#201); one cause of a flaky hosting-shutdown test on
net11.0is fixed (#205).
What's Changed
- Set the development version to 0.12.1-dev by @carldebilly in #195
- build: build and test with the .NET 11 SDK by @carldebilly in #196
- ci: install the .NET 11 SDK in the release job by @carldebilly in #201
- build: multi-target the packages for net10.0 and net11.0 by @carldebilly in #197
- terminal: honour FORCE_COLOR and keep control sequences off non-terminals by @carldebilly in #198
- core: process the active case of a C# 15 union command result by @carldebilly in #199
- docs: add notes for running on .NET 11 by @carldebilly in #203
- test: keep the hostile shutdown callback registered by @carldebilly in #205
- docs: label union results as C# 15 and correct System.Console under FORCE_COLOR by @carldebilly in #206
Full Changelog: v0.12.0...v0.12.1