lib/3llo/command.rb in 3llo-1.0.0 vs lib/3llo/command.rb in 3llo-1.1.0
- old
+ new
@@ -1,8 +1,9 @@
require "3llo/command/board"
require "3llo/command/card"
require "3llo/command/list"
+require "3llo/command/label"
require "3llo/command/help"
require "3llo/command/exit"
require "3llo/command/invalid"
module Tr3llo
@@ -13,18 +14,19 @@
build_command(command_buffer)
end
def generate_suggestions(buffer, command_buffer)
commands = {
- "board" => ["list", "select"],
- "list" => %w[list cards archive-cards],
+ "board" => %w[add list select],
+ "list" => %w[list add cards archive-cards],
"card" => %w[
list show add edit archive list-mine move
comment comments self-assign assign
add-checklist edit-checklist remove-checklist
add-item edit-item remote-item check-item uncheck-item
],
+ "label" => %w[list add edit remove],
"help" => [],
"exit" => []
}
command, _subcommand, _args = parse_command(command_buffer)
@@ -50,9 +52,11 @@
Command::Board.execute(subcommand, args)
when "card"
Command::Card.execute(subcommand, args)
when "list"
Command::List.execute(subcommand, args)
+ when "label"
+ Command::Label.execute(subcommand, args)
when "help"
Command::Help.execute()
when "exit"
Command::Exit.execute()
else