Sha256: 1477155ba696620d9002533c232469b584ce3b91d8e656b8577643c0927691b4
Contents?: true
Size: 859 Bytes
Versions: 7
Compression:
Stored size: 859 Bytes
Contents
module TrelloCli module CLI module List class List def initialize @options = {} end def run option_parser.parse! list_lists.each do |list| name = list.attributes[:name] id = list.attributes[:id] puts "#{name} ( #{id} )" end end private def list_lists ll = TrelloCli::Requests::ListLists.new ll.list @options end def option_parser OptionParser.new do |opts| opts.banner = "Usage: trello list [list] [options]" opts.on("-b", "--board [BOARD]", "Trello Board Id") do |b| @options[:board_id] = b end end end def help puts option_parser.help end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems