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

Use environment variables for configuration #554

Open
DarkPark opened this issue Feb 4, 2025 · 4 comments
Open

Use environment variables for configuration #554

DarkPark opened this issue Feb 4, 2025 · 4 comments
Labels
good first issue Good for newcomers

Comments

@DarkPark
Copy link

DarkPark commented Feb 4, 2025

Would be nice to have it.

@jsumners
Copy link
Member

jsumners commented Feb 4, 2025

Please provide details on what you are expecting. Is this request for the CLI tool?

@DarkPark
Copy link
Author

DarkPark commented Feb 4, 2025

@jsumners issue title is rather self-explanatory

instead of

myapp | pino-pretty --singleLine --colorize=1

would be nice to be able to use this

myapp | SINGLE_LINE=true COLORIZE=true pino-pretty

@jsumners
Copy link
Member

jsumners commented Feb 4, 2025

issue title is rather self-explanatory

If that were the case I wouldn't have asked for more detail.

So, yes, you are looking for environment variable support in the CLI tool.

@jsumners jsumners added the good first issue Good for newcomers label Feb 4, 2025
@DarkPark
Copy link
Author

DarkPark commented Feb 4, 2025

It also would be more natural to use boolean for COLORIZE instead of number.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants