Sha256: f044fa5e5434513080334689ad47b03f858e2c7e21153251a103497242389e41
Contents?: true
Size: 914 Bytes
Versions: 5
Compression:
Stored size: 914 Bytes
Contents
module TrelloCli module CLI module Card class Move def initialize @options = {} end def run option_parser.parse! move_card puts "Card '#{@options[:card_id]}' moved to list '#{@options[:list_id]}'." end private def move_card mc = TrelloCli::Requests::MoveCard.new mc.move @options end def option_parser OptionParser.new do |opts| opts.banner = "Usage: trello card [move] [options]" opts.on("-c", "--card_id [CARD_ID]", "ID of Card") do |c| @options[:card_id] = c end opts.on("-l", "--list_id [LIST_ID]", "New List ID") do |l| @options[:list_id] = l end end end def help puts option_parser.help end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems