Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable progress and colors when not running on a tty #1210

Closed
francois2metz opened this issue Dec 6, 2021 · 1 comment · Fixed by #1221
Closed

Disable progress and colors when not running on a tty #1210

francois2metz opened this issue Dec 6, 2021 · 1 comment · Fixed by #1221
Assignees
Labels
enhancement New feature or request

Comments

@francois2metz
Copy link
Contributor

Is your feature request related to a problem? Please describe.
When running steampipe on Github Actions or similar, steampipe output the progress of the installation of plugins, database initialization, and control checks.

Describe the solution you'd like
It would be nice if by detault, if steampipe is not running on a tty, any progress or ansi colors are disabled.

Describe alternatives you've considered
When running mods/benchmarks/controls it's possible to use the flags --progress=false and --theme plain.

Additional context
Here is the sample output of installing a steampipe plugin on GitHub actions.
Screenshot 2021-12-06 at 19-02-30 Fix the workflow · 1024pix steampipe-checks 2eec806

@francois2metz francois2metz added the enhancement New feature or request label Dec 6, 2021
@e-gineer
Copy link
Contributor

e-gineer commented Dec 6, 2021

Nice idea @francois2metz ... perhaps we can set the internal flag at the start of the run based on whether we detect a terminal or not?

Code like this might help - https://www.socketloop.com/tutorials/golang-how-to-check-if-your-program-is-running-in-a-terminal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants