Get more consistent output from poetry show
#9597
Labels
area/show
Related to `poetry show`
kind/feature
Feature requests/implementations
status/triage
This issue needs to be triaged
Issue Kind
Change in current behaviour
Description
Currently, the output of
poetry show
depends on the width of the terminal of the caller. This means that some information might get truncated if the terminal is not wide enough. While this makes for a more more readable output for the user, it becomes less ideal when calling the command from a script, where the notion of terminal width does not make sense.In order to get a more consistent output from the
poetry show
command, there should be a--no-truncate
flag added to the command. When the flag is set, the show command does not take the width of the terminal into account when deciding the level of detail to print.Impact
If
poetry show
is called from a script that processes the output downstream, it needs the command to give a consistent output.Workarounds
Currently, it is possible to set an arbitrarily large fake terminal width, in order to achieve to ensure nothing is truncated. E.g., setting environment variable
COLUMNS={large number}
. However, this is very much a hack and does not seem like the right solution.The text was updated successfully, but these errors were encountered: