puppetlabs-toy-chest / wash

Wide Area SHell: a cloud-native shell for bringing remote infrastructure to your terminal.
https://puppetlabs.github.io/wash
Apache License 2.0
180 stars 29 forks source link

cmdutil's table should account for headers when computing longest column #614

Closed ekinanp closed 4 years ago

ekinanp commented 4 years ago

It's possible for the header to be the longest column. https://github.com/puppetlabs/wash/blob/master/cmd/util/tables.go#L93-L103 should account for that so that the table's properly formatted.