Class: Intent::Commands::Project
- Defined in:
- lib/intent/commands/project.rb
Instance Method Summary collapse
Instance Method Details
#run(args, output) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/intent/commands/project.rb', line 4 def run(args, output) if args.empty? print_help(output) else case args.first.to_sym when :help print_help(output) when :link if args[1].nil? # launch into projects selection? raise "Need to link to a noun at this stage, sorry" else case args[1].to_sym when :notes then link_notes(args, output) else raise "Noun not implemented" end end else raise Errors:COMMAND_NOT_FOUND end end end |