DavidVujic / python-polylith

Tooling support for the Polylith Architecture in Python.
https://davidvujic.github.io/python-polylith-docs/
MIT License
359 stars 22 forks source link

poly diff output wraps at 80 chars #245

Closed hstravis closed 1 month ago

hstravis commented 1 month ago

The output from the poetry poly diff --bricks --short command wraps at 80 characters. This is unexpected since the output is intended to be used programmatically.

Work-around in bash:

poetry poly diff --bricks --short --since stable | tr -d \\r | tr -d \\n

To Reproduce Steps to reproduce the behavior:

  1. Open a terminal window
  2. Go to root of the project
  3. Run the command poetry poly diff --bricks --short --since stable
  4. If there are more than 80 chars of output, the line will wrap with \r\n

Error Log If applicable, add the error logs.

Expected behavior No new lines in output of poly diff command with --bricks --short.

Screenshots Sorry, it's a private repo.

Desktop (please complete the following information):

Additional context Polylith plugin version: 1.26.2

DavidVujic commented 1 month ago

Thank you for reporting this issue @hstravis - I'll have a look right away.

DavidVujic commented 1 month ago

I have published a new version (1.27.1 of the Poetry plugin) that I believe will fix this issue. Thank you again for reporting ⭐