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

--plain does not provide processable output when new version is available #382

Closed
schnapster opened this issue Jul 18, 2021 · 1 comment · Fixed by #389 or #397
Closed

--plain does not provide processable output when new version is available #382

schnapster opened this issue Jul 18, 2021 · 1 comment · Fixed by #389 or #397

Comments

@schnapster
Copy link

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:

  1. Use an outdated version of crowdin cli.
  2. Execute CLI command: crowdin list languages --plain
  3. Notice the version banner at the bottom

Expected behavior
Don't output the version banner when the --plain flag is provided

Environment:
irrelevant

Screenshots
image

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.

@matias904
Copy link

Ok

@andrii-bodnar andrii-bodnar linked a pull request Sep 7, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants