Class: ListTool::App::ShowListsCommand
- Inherits:
-
Object
- Object
- ListTool::App::ShowListsCommand
- Defined in:
- lib/list_tool/app/commands/show_lists_command.rb
Class Method Summary collapse
Class Method Details
.execute(options, lister) ⇒ Object
14 15 16 17 |
# File 'lib/list_tool/app/commands/show_lists_command.rb', line 14 def self.execute , lister lists = lister.lists Printer.print_lists(lists) end |
.help ⇒ Object
19 20 21 |
# File 'lib/list_tool/app/commands/show_lists_command.rb', line 19 def self.help " sl, show-lists\t\tPrint list of existing lists" end |
.match?(arg) ⇒ Boolean
6 7 8 |
# File 'lib/list_tool/app/commands/show_lists_command.rb', line 6 def self.match? arg ['sl', 'show-lists'].include? arg end |
.parse(argv) ⇒ Object
10 11 12 |
# File 'lib/list_tool/app/commands/show_lists_command.rb', line 10 def self.parse argv {} end |