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

Allow non-colored output #56

Open
cdoepmann opened this issue Jan 24, 2024 · 1 comment
Open

Allow non-colored output #56

cdoepmann opened this issue Jan 24, 2024 · 1 comment
Labels
kind:enhancement New feature or request

Comments

@cdoepmann
Copy link

Currently, paperless-cli seems to unconditionally use colors for its output which makes the output unreadable in my setup (I am using the solarized theme):

2024-01-24_09-49

While handling such edge cases may be out of scope for this tool, it would be nice to add an option to use uncolored output so the tool can be used in such environments. Also, I noticed that colors are used even if the output is redirected to a file etc. I would suggest only enabling output colors by default if stdout goes to a terminal, as is done by many other tools and probably the best practice when offering colored output.

@ccremer
Copy link
Owner

ccremer commented Jan 29, 2024

Hi.
I'm using a 3rd-party library to handle logging and its colored output formatting.
I want to transition to the new Go structured logging feature, but this library doesn't yet fully support it. So I'm awaiting pterm/pterm#603 to get resolved first, otherwise I might end up doing the same effort twice after switching to the new logging stack.

@ccremer ccremer added the kind:enhancement New feature or request label Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants