diff options
author | elijah <elijah@riseup.net> | 2014-04-01 10:40:54 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2014-04-01 10:40:54 -0700 |
commit | 45eeab6495824266a01b4e50c362a74991a98de2 (patch) | |
tree | ed2c2594149468a430a054682491b4c16db55816 /lib | |
parent | 1631237aa6f460b1b67553d8fb8111a76e87c293 (diff) | |
download | leap_cli-45eeab6495824266a01b4e50c362a74991a98de2.tar.gz leap_cli-45eeab6495824266a01b4e50c362a74991a98de2.tar.bz2 |
more fixes for leap list
Diffstat (limited to 'lib')
-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 fe3b77f..15b91d5 100644 --- a/lib/leap_cli/commands/list.rb +++ b/lib/leap_cli/commands/list.rb @@ -102,13 +102,13 @@ module LeapCli; module Commands max_service_width = (rows.map{|i|i[1]} + ["SERVICES"]).inject(0) {|max,i| [i.size+padding+padding,max].max} max_tag_width = (rows.map{|i|i[2]} + ["TAGS"] ).inject(0) {|max,i| [i.size,max].max} table :border => false do - row :header => true, :color => 'cyan' do + row :color => 'cyan' do column "NODES", :align => 'right', :width => max_node_width column "SERVICES", :width => max_service_width, :padding => 2 column "TAGS", :width => max_tag_width end rows.each do |r| - row do + row :color => 'white' do column r[0] column r[1] column r[2] |