lib/3llo/card_command_factory.rb in 3llo-0.1.10 vs lib/3llo/card_command_factory.rb in 3llo-0.1.11
- old
+ new
@@ -3,10 +3,11 @@
require '3llo/commands/card/show'
require '3llo/commands/card/move'
require '3llo/commands/card/self_assign'
require '3llo/commands/card/invalid'
require '3llo/commands/card/comments'
+require '3llo/commands/card/comment'
require '3llo/commands/card/add'
module Tr3llo
class CardCommandFactory
def initialize(subcommand, args)
@@ -33,9 +34,12 @@
card_id, _ = args
Command::Card::ShowCommand.new(card_id)
when 'comments'
card_id, _ = args
Command::Card::CommentsCommand.new(card_id)
+ when 'comment'
+ card_id, _ = args
+ Command::Card::CommentCommand.new(card_id)
when 'move'
card_id, _ = args
board_id = $container.resolve(:board)[:id]
Command::Card::MoveCommand.new(card_id, board_id)
when 'self-assign'