Skip to content

feat: add --quiet / -q flag to suppress TUI output#11

Open
Jefsky wants to merge 1 commit into
jstreitb:mainfrom
Jefsky:feat/quiet-flag
Open

feat: add --quiet / -q flag to suppress TUI output#11
Jefsky wants to merge 1 commit into
jstreitb:mainfrom
Jefsky:feat/quiet-flag

Conversation

@Jefsky
Copy link
Copy Markdown

@Jefsky Jefsky commented May 1, 2026

Summary

Adds a --quiet / -q flag to baa that skips the TUI and runs package manager updates directly in the background. Only errors are printed; successful updates produce no output.

Changes

  • Added quiet flag (--quiet, -q) in main.go
  • Updated flag.Usage to document the new flag
  • Added runQuietMode() function that:
    • Detects installed package managers
    • Runs updates for each manager in background goroutines
    • Silently drains output (no TUI)
    • Only prints errors to stderr
  • If no package managers are found, exits silently (not an error)

Behavior

# Normal mode (TUI)
baa

# Quiet mode (background, errors only)
baa --quiet
# or
baa -q

In quiet mode:

  • No TUI is displayed
  • Package manager output is suppressed
  • Only errors are printed to stderr
  • Exit code 0 on success, 1 on error

Closes #2

Adds a quiet mode that:
- Skips the Bubble Tea TUI entirely
- Runs package manager updates directly in the background
- Only outputs errors (no success messages)
- Exits silently on success

Closes jstreitb#2
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.

Good First Issue: Add --quiet flag to suppress non-error output

1 participant