basho / clique

CLI Framework for Erlang
Apache License 2.0
147 stars 49 forks source link

Some columns get larger when width is too small. #68

Open jonmeredith opened 9 years ago

jonmeredith commented 9 years ago

If terminal width is too small the some columns are made wider than normal. Perhaps we should break into multiple outputs if insufficient width.

ubuntu@riak105:~$ sudo riak-admin handoff details
Type Key: O = Ownership, H = Hinted, Rz = Resize, Rp = Repair
+-------------+--+-------+----+---------------+---------------++
|    Type     |So|Target:|Size|  Rate (KB/s)  |       %       ||
+-------------+--+-------+----+---------------+---------------++
|      O      |ri|riak@ri|611.|    608.96     |    329.16     ||
|      O      |ri|riak@ri|686.|    603.99     |    287.46     ||
+-------------+--+-------+----+---------------+---------------++
ubuntu@riak105:~$ 
ubuntu@riak105:~$ sudo riak-admin handoff details
Type Key: O = Ownership, H = Hinted, Rz = Resize, Rp = Repair
+----+-------------------+-------------------+--------+-----------+------+------------------+
|Type|     Source:ID     |     Target:ID     |  Size  |Rate (KB/s)|  %   |      Sender      |
+----+-------------------+-------------------+--------+-----------+------+------------------+
| O  |riak@riak102.aws:17|riak@riak105.aws:17|661.3 MB|  910.14   | 16.11|<25397.31465.1017>|
| O  |riak@riak103.aws:42|riak@riak105.aws:42|704.4 MB|  846.67   | 22.39|<25398.4560.1436> |
+----+-------------------+-------------------+--------+-----------+------+------------------+