Class: Intent::Commands::Todo
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#generate_id, #initialize, #print_help
Constructor Details
This class inherits a constructor from Intent::Commands::Base
Instance Method Details
#run(args, output) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/intent/commands/todo.rb', line 4 def run(args, output) if args.empty? print_help(output) else case args.first.to_sym when :add then add_line(args, output) when :list then list_draw(args, output) when :focus then focus_draw(args, output) else raise "Verb not found" end end end |