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
Describe the bug
When a new version is available, a banner gets appended to the output of commands, including one run with the --plain flag.
According to the wiki and help, the --plain flag is supposed to "Provide plain, processable output" - the banner however is not very much processable.
To Reproduce
Steps to reproduce the behavior:
Use an outdated version of crowdin cli.
Execute CLI command: crowdin list languages --plain
Notice the version banner at the bottom
Expected behavior
Don't output the version banner when the --plain flag is provided
Environment:
irrelevant
Screenshots
Additional context
As a workaround, one can modify the output before processing it, for example by piping it through sed replacing everything past the two newlines: sed -z 's/\n\n.*/\n/g', however, the ideal situation imho would be respecting the --plain.
The text was updated successfully, but these errors were encountered:
Describe the bug
When a new version is available, a banner gets appended to the output of commands, including one run with the
--plain
flag.According to the wiki and help, the
--plain
flag is supposed to "Provide plain, processable output" - the banner however is not very much processable.To Reproduce
Steps to reproduce the behavior:
crowdin list languages --plain
Expected behavior
Don't output the version banner when the
--plain
flag is providedEnvironment:
irrelevant
Screenshots
Additional context
As a workaround, one can modify the output before processing it, for example by piping it through sed replacing everything past the two newlines:
sed -z 's/\n\n.*/\n/g'
, however, the ideal situation imho would be respecting the--plain
.The text was updated successfully, but these errors were encountered: