Skip to content

Add Spectre CLI command UX and dashboard improvements#5

Merged
jongalloway merged 8 commits intomainfrom
feat/spectre-cli-ui-upgrades
Feb 26, 2026
Merged

Add Spectre CLI command UX and dashboard improvements#5
jongalloway merged 8 commits intomainfrom
feat/spectre-cli-ui-upgrades

Conversation

@jongalloway
Copy link
Owner

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.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 CommandApp with commands (generate default, 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 CacheService and 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.

jongalloway and others added 3 commits February 26, 2026 13:32
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Contributor

Copilot AI commented Feb 26, 2026

@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.

Copilot AI and others added 2 commits February 26, 2026 21:36
Co-authored-by: jongalloway <68539+jongalloway@users.noreply.github.com>
Fix cache path inconsistency when running from non-project directory
@jongalloway jongalloway merged commit f96db7d into main Feb 26, 2026
2 checks passed
@jongalloway jongalloway deleted the feat/spectre-cli-ui-upgrades branch February 27, 2026 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants