Next-Level Console Apps With Spectre.Console
summary
Spectre.Console is used to turn a hacked-together .NET console into a usable tool: strongly typed command settings and options, text/secret/selection prompts with validators, and a boolean converter for yes/no answers. The demo implements a migrator that streams an IAsyncEnumerable and renders a progress bar with 150-item migration (100ms per item in demo), counts successes/failures and shows a bar chart. It also demonstrates a live animated GIF via ImageSharp that updates in-place — all examples compile and run.
AI-written summary · about
chapters (18)
- 0:00Spectre.Console intro
- 1:05Console apps today
- 5:27Spectre.Console features
- 6:28Migration scenario setup
- 9:57Commands with Spectre.Console
- 13:10Visual flair with Figlet
- 14:36Command settings config
- 16:24Secure user input prompts
- 21:18Enum selection prompts
- 23:23Settings summary tables
- 25:48Confirm before execution
- 27:55Environment status connect
- 30:04Migration info gathering
- 32:53Progress reporting
- 36:53Bar chart results
- 38:16Rollback with live display
- 42:54Advanced Spectre.Console
- 45:04Q&A
related talks
47mBuilding intuitive command-line interfaces in .NET
11mCommand Line Craftsmanship: Building and Sharing .NET CLI Tools
44mExploring and Building Cross-Platform TUIs
01h 04mRetro Computing with .NET
01h 06mDeveloping Modern WinForms Applications
01h 01mModernizing the enterprise desktop application
54mVSCode for the C# Developer
25mCommandLine Tools for DevOps
