lib/3llo/command/board.rb in 3llo-1.0.0.pre.rc.0 vs lib/3llo/command/board.rb in 3llo-1.0.0
- old
+ new
@@ -1,21 +1,21 @@
-require '3llo/command/board/list'
-require '3llo/command/board/select'
-require '3llo/command/board/invalid'
+require "3llo/command/board/list"
+require "3llo/command/board/select"
+require "3llo/command/board/invalid"
module Tr3llo
module Command
module Board
extend self
def execute(subcommand, args)
case subcommand
- when 'list'
+ when "list"
user = Application.fetch_user!()
Command::Board::List.execute(user[:id])
- when 'select'
- board_key, _ = args
+ when "select"
+ board_key, = args
Utils.assert_string!(board_key, "board key is missing")
Command::Board::Select.execute(board_key)
else
handle_invalid_subcommand(subcommand, args)