class Dip::Commands::List
Public Instance Methods
execute()
click to toggle source
# File lib/dip/commands/list.rb, line 9 def execute tree = InteractionTree.new(Dip.config.interaction).list longest_name = tree.keys.map(&:size).max tree.each do |name, command| puts "#{name.ljust(longest_name)} ##{command[:description] ? " #{command[:description]}" : ""}" end end