Method: Intent::Commands::Todo#run
- Defined in:
- lib/intent/commands/todo.rb
#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 |