Borg/pkg
google-labs-jules[bot] b5daedd735 feat: Implement non-interactive quote display
This commit introduces a non-interactive mode for the `collect` commands. When running in a non-interactive session, the progress bar is replaced with a series of thematic Borg quotes, printed in matrix-green text.

The quotes are sourced from a `quotes.json` file, which is embedded into the binary using Go's `embed` package. The `pkg/ui` package now contains a `NonInteractivePrompter` that detects the session type and displays the quotes accordingly. The `collect` commands have been updated to use this new prompter, and the underlying `vcs` and `website` packages have been made more robust to handle cases where a progress bar is not provided.

This commit also addresses feedback from the code review:
- Fixes a formatting inconsistency in `data/quotes.json`.
- Updates the `go-colorable` dependency to `v0.1.14`.
- Adds a nil-check to the `Write` method in `pkg/ui/progress_writer.go` to prevent panics.
- Implements caching for the quotes using `sync.Once` and adds checks for empty quote slices to prevent panics in `pkg/ui/quote.go`.
- Refactors the `NonInteractivePrompter` in `pkg/ui/non_interactive_prompter.go` to be more robust and efficient.
2025-11-02 16:48:50 +00:00
..
compress feat: Add optional compression to collect commands 2025-11-02 13:27:04 +00:00
datanode feat: Implement DataNode and update PWA commands 2025-10-31 20:47:11 +00:00
github refactor: Improve code quality, testability, and CI 2025-11-02 01:54:23 +00:00
logger feat: Add authenticated GitHub access and structured logging 2025-11-02 00:59:46 +00:00
matrix feat: Add Terminal Isolation Matrix feature 2025-11-02 12:39:46 +00:00
pwa refactor: Improve code quality, testability, and CI 2025-11-02 01:54:23 +00:00
tarfs feat: Add optional compression to collect commands 2025-11-02 13:27:04 +00:00
ui feat: Implement non-interactive quote display 2025-11-02 16:48:50 +00:00
vcs feat: Implement non-interactive quote display 2025-11-02 16:34:45 +00:00
website feat: Implement non-interactive quote display 2025-11-02 16:34:45 +00:00