Skip to content

--color no not respected for errors #50

@jantari

Description

@jantari

Steps To Reproduce

Run bws --color no --access-token whatever get secret whatever with bws CLI 0.2.1

Expected Result

The output should not contain terminal escape sequences / color.

Actual Result

The output contains terminal escape sequences and color text.

Screenshots or Videos

grafik

Additional Context

This behavior is unexpected and makes it unneccessarily difficult to capture a "clean" output of the command for logging purposes, or for output to a non-terminal.

Operating System

Linux

Operating System Version

Ubuntu 22.04 WSL

Shell

Bash

Build Version

0.2.1

Issue Tracking Info

  • I understand that work is tracked outside of Github. A PR will be linked to this issue should one be opened to address it, but Bitwarden doesn't use fields like "assigned", "milestone", or "project" to track progress.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions