Add Spectre CLI command UX and dashboard improvements#5
Merged
jongalloway merged 8 commits intomainfrom Feb 26, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR upgrades the newsletter generator’s terminal UX by moving from manual argument parsing to a structured Spectre.Console.Cli command-based interface, and adds a richer run “dashboard” with cache and timing metrics to help users understand what happened during generation.
Changes:
- Introduces Spectre.Console.Cli
CommandAppwith commands (generatedefault,list-models,clear-cache,doctor) and new generate options (non-interactive, yes, debug). - Adds run-time telemetry in the console UI: progress tasks, pre-run “Run Review”, and a post-run dashboard with source counts, cache stats, and stage durations.
- Tracks cache hit/miss/skip counts in
CacheServiceand updates README usage/docs accordingly.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| src/NewsletterGenerator/Services/CacheService.cs | Adds cache hit/miss/skip counters to support dashboard metrics. |
| src/NewsletterGenerator/Program.cs | Replaces manual CLI parsing with Spectre.Console.Cli commands and adds run review/dashboard UI + metrics plumbing. |
| src/NewsletterGenerator/NewsletterGenerator.csproj | Adds Spectre.Console.Cli dependency for the new command UX. |
| README.md | Updates usage instructions, commands, and explains new UI/dashboard behavior. |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Contributor
|
@jongalloway I've opened a new pull request, #6, to work on those changes. Once the pull request is ready, I'll request review from you. |
Co-authored-by: jongalloway <68539+jongalloway@users.noreply.github.com>
Fix cache path inconsistency when running from non-project directory
jongalloway
commented
Feb 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enhance the user experience for the Spectre CLI with improved command options and a more informative dashboard. Introduce new metrics for cache performance and streamline command usage for better accessibility. Update documentation to reflect these changes.