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

feat: add ci flag and make output pipeable #23

Merged
merged 4 commits into from
Feb 23, 2023
Merged

Conversation

ayuhito
Copy link
Member

@ayuhito ayuhito commented Feb 23, 2023

Closes #9. Adds a --ci flag that disables realtime updates and colour. This is also pipe-friendly output too.

The CI flag is automatically set to true if env.CI is set to true or the CLI detects the output is being redirected elsewhere.

@jimaek
Copy link
Member

jimaek commented Feb 23, 2023

Do you know if GitHub actions uses env.CI too?

@ayuhito
Copy link
Member Author

ayuhito commented Feb 23, 2023

GitHub, GitLab, etc, all set env.CI to true. ^^

@ayuhito ayuhito merged commit 5ae5eb2 into master Feb 23, 2023
@ayuhito ayuhito deleted the feat/ci-redirect branch February 23, 2023 19:37
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.

Detect output redirect
2 participants