5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# File 'lib/mono/tool.rb', line 5
def self.main( args=ARGV )
cmd = if args.size == 0
'status' else
args.shift end
case cmd.downcase
when 'status', 'stati', 'stat', 'st', 's'
Mono.status
when 'sync', 'syn', 'sy', 'get', 'g',
'install', 'insta', 'inst', 'ins', 'i',
'up', 'u'
Mono.sync
when 'fetch', 'f'
Mono.fetch
when 'env', 'e'
Mono.env
when 'backup', 'back', 'b'
Mono.backup
when 'run', 'r', 'exec'
Mono.run( args )
else
puts "!! ERROR: unknown command >#{cmd}<"
exit 1
end
end
|