diff options
author | elijah <elijah@riseup.net> | 2014-04-01 10:34:56 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2014-04-01 10:34:56 -0700 |
commit | 3f53ffcff20d20dd807406e2fea5199efaa5dc81 (patch) | |
tree | a737455aadcd25871b0d7b97be76a3d7ec17f96d | |
parent | 66c2b5065aa84131b61d8975c4fc26e62eff1abd (diff) | |
download | leap_cli-3f53ffcff20d20dd807406e2fea5199efaa5dc81.tar.gz leap_cli-3f53ffcff20d20dd807406e2fea5199efaa5dc81.tar.bz2 |
fix bug with `leap list` on some servers.
-rw-r--r-- | lib/leap_cli/commands/list.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/leap_cli/commands/list.rb b/lib/leap_cli/commands/list.rb index 7e803d4..fe3b77f 100644 --- a/lib/leap_cli/commands/list.rb +++ b/lib/leap_cli/commands/list.rb @@ -65,12 +65,12 @@ module LeapCli; module Commands tags = @tag_list.keys.sort max_width = [20, (tags+[@heading]).inject(0) {|max,i| [i.size,max].max}].max table :border => false do - row :header => true, :color => 'cyan' do + row :color => 'cyan' do column @heading, :align => 'right', :width => max_width column "NODES", :width => HighLine::SystemExtensions.terminal_size.first - max_width - 2, :padding => 2 end tags.each do |tag| - row do + row :color => 'white' do column tag column @tag_list[tag].node_list.keys.sort.join(', ') end |