codefresh-io/cli

Inconsistent separator for id and name output formats

Opened this issue · 0 comments

The id and name formats seem to be inconsistent with other formats output by the tool. They separate items with \n\r whereas the other outputs seem to use \n.

In referencing Newline on Wikipedia, it seems like the aim may have been to use the Windows newline format (\r\n), but the characters got mixed up.

However, since the other formats supported by the tool are already using \n, I would argue for changing id and name to be consistent with the rest of the tool. This deviation is causing trouble while trying to create scripts that use the tool. We're having to run the output through tr -d '\r' so that the script can even work with it.

See: