You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pull request #3897 changed the handling of command line output. I believe it now goes through a BasicFormat object. It always emits some sequence to clear the style:
.[0;0mVault v0.9.3
Clearing the ANSI sequence still requires ANSI support, which is expected to be missing if VAULT_CLI_NO_COLOR is set.
Environment:
Set this environment variable
export VAULT_CLI_NO_COLOR=1
Or on Windows
SET VAULT_CLI_NO_COLOR=1
Vault Version:
0.9.3
Operating System/Architecture:
Can reproduce on Windows 64 bits or Linux 64 bits
Vault Config File:
N/A
Expected Behavior:
No ANSI sequence should be output if VAULT_CLI_NO_COLOR is set.
Actual Behavior:
ANSI escape sequences were produced in the output. Granted, there was no color, but the mere fact of having no color is a color in itself.
Steps to Reproduce:
Run any vault command line command. For example with this environment:
@ixe013 you are running a build before #3897 got implemented. 5acd6a2 is the commit for the 0.9.3 release, so you need to do a build from master in order to get the changes.
Thanks, I will build my own version until 0.9.4 comes along.
Obviously, it is not for vault version that it is problematic, but for scripted commands like vault operator init. Parsing the shards from the output grabs those pesky sequences...
Pull request #3897 changed the handling of command line output. I believe it now goes through a
BasicFormat
object. It always emits some sequence to clear the style:Clearing the ANSI sequence still requires ANSI support, which is expected to be missing if
VAULT_CLI_NO_COLOR
is set.Environment:
Or on Windows
0.9.3
Can reproduce on Windows 64 bits or Linux 64 bits
Vault Config File:
N/A
Expected Behavior:
No ANSI sequence should be output if
VAULT_CLI_NO_COLOR
is set.Actual Behavior:
ANSI escape sequences were produced in the output. Granted, there was no color, but the mere fact of having no color is a color in itself.
Steps to Reproduce:
Run any vault command line command. For example with this environment:
Same thing on Windows:
Query Vault version
References:
#3897
The text was updated successfully, but these errors were encountered: