Files
urfave-cli/template.go
Mostyn Bramley-Moore 4fd56cb22d Add word-wrap support, with wrap length provided by the user
We could try to automatically detect the terminal width and wrap at that
point, but this would increase the binary footprint for all users even
if not using this feature.

Instead, we can allow users to specify their preferred line length limit
(if any), and those who want to bear the cost of checking the terminal
size can do so if they wish. This also makes the feature more testable.

Original patch by Sascha Grunert <sgrunert@suse.com>
2022-05-23 20:42:16 +02:00

4.2 KiB