Sha256: b551bcba556245a3612d93c92702a1c5692d65f4dcad48be3a7330b89394a230
Contents?: true
Size: 735 Bytes
Versions: 1
Compression:
Stored size: 735 Bytes
Contents
module TrelloCli module CLI class List include Shared def initialize @options = {} end def list parse_options 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 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
trello_cli-0.0.1 | lib/trello_cli/cli/list.rb |