Sha256: 4c1403fe7ca9e8444ae8d6afab7849dc9ac0e7d2aafe99acd74018ff8cbba612
Contents?: true
Size: 735 Bytes
Versions: 4
Compression:
Stored size: 735 Bytes
Contents
module TrelloCli module CLI module Board class List def initialize @options = {} end def run option_parser.parse! list_boards.each do |list| name = list.attributes[:name] id = list.attributes[:id] puts "#{name} ( #{id} )" end end private def list_boards lb = TrelloCli::Requests::ListBoards.new lb.list end def option_parser(options=@options) OptionParser.new do |opts| opts.banner = "Usage: trello board [list]" end end def help puts option_parser.help end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems