Method: Intent::Commands::Projects#run
- Defined in:
- lib/intent/commands/projects.rb
#run(args, output) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/intent/commands/projects.rb', line 6 def run(args, output) if args.empty? print_help(output) else case args.first.to_sym when :help print_help(output) when :list documents.projects.all.each do |task| output.puts task.highlight_as_project end when :add add_project(args, output) end end end |