apache / apache/buildstream

Add --quiet mode to CLI

Open
#1,844 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
140
Forks
45
Avg merge
1d 3h
Merged PRs (30d)
6

Description

It would be useful for various automation purposes if BuildStream could be silenced unless an error occurs. For normal CLI tools this could be achieved by just redirecting stdout to null and leaving stderr open, but BuildStream prints _everything_ to stderr. So, a --quiet flag that silences all warnings and informational output, and only prints errors, would be perfect!

Use-case: I have a script that I execute via `bst shell`. I want both stdout and stderr from the script, as well as errors from Buildstream, but I don't need BuildStream to print everything else (project warnings, pipeline status, etc).

Contributor guide

Open the contributing guide

Research direction

Begin with the CLI path for `bst shell` and trace how BuildStream emits warnings, informational output, and errors; the issue names no source file or test. Done means a `--quiet` option suppresses BuildStream warnings and status output while retaining errors and both output streams from the script.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.