This website requires JavaScript.
Explore
Help
Sign in
Snider
/
Borg
Watch
1
Star
0
Fork
You've already forked Borg
0
Code
Issues
Pull requests
Projects
Releases
Packages
Wiki
Activity
Actions
a77024aad4
Borg
/
pkg
/
ui
/
data.go
7 lines
75 B
Go
Raw
Normal View
History
Unescape
Escape
Refactor package structure and update dependencies
2025-11-03 02:36:38 +00:00
package
ui
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.
2025-11-02 16:34:45 +00:00
import
"embed"
//go:embed quotes.json
var
QuotesJSON
embed
.
FS
Reference in a new issue
Copy permalink