From 45eeab6495824266a01b4e50c362a74991a98de2 Mon Sep 17 00:00:00 2001 From: elijah Date: Tue, 1 Apr 2014 10:40:54 -0700 Subject: more fixes for leap list --- lib/leap_cli/commands/list.rb | 4 ++-- 1 file 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] -- cgit v1.2.3