Class: KittyGen::Cli

Inherits:
Object
  • Object
show all
Defined in:
lib/kitty_gen/cli.rb

Instance Method Summary collapse

Instance Method Details

#start(command_line_arguments) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/kitty_gen/cli.rb', line 5

def start(command_line_arguments)
  case ARGV[0]
  when "new"
    new(ARGV[1])
  when "list"
    list
  when "add"
    add(ARGV[1])
  else
    puts help
  end
end