114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
|
# File 'lib/cow/application.rb', line 114
def run
command = ARGV[0]
option1 = ARGV[1]
option2 = ARGV[2]
option3 = ARGV[3]
case command
when 'add', 'a'
cmd_add(option1, option2, option3)
when 'delete', 'd'
cmd_delete(option1)
when 'connect', 'c'
cmd_connect(option1)
when 'find', 'f'
cmd_find(option1)
when 'list', 'l'
cmd_list(option1)
when 'server-list', 's'
cmd_server_list
when 'update', 'u'
cmd_update(option1)
else
show_help
end
end
|