-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcalypso.rb
executable file
·68 lines (49 loc) · 1.61 KB
/
calypso.rb
1
2
3
4
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/usr/bin/env ruby
require 'date'
require 'thor'
require 'fileutils'
require 'pathname'
require 'optparse'
require_relative 'lib/calypso/clean'
require_relative 'lib/calypso/deps'
require_relative 'lib/calypso/lint'
require_relative 'lib/calypso/simctl'
require_relative 'lib/calypso/xcodebuild'
require_relative 'lib/calypso/codecov'
require_relative 'lib/calypso/issues'
require_relative 'lib/calypso/release/release'
require_relative 'lib/calypso/release/version'
require_relative 'lib/calypso/release/pod'
require_relative 'lib/calypso/release/carthage'
require_relative 'lib/calypso/release/docs'
$stdout.sync = $stderr.sync = true
module Calypso
class CLI < Thor
include Calypso
desc 'clean', 'Clean source code'
subcommand 'clean', Clean
desc 'docs', 'Generate docs'
subcommand 'docs', Docs
desc 'deps', 'Prepare depended libraries'
subcommand 'deps', Deps
desc 'lint', 'Check and format source code style'
subcommand 'lint', Lint
desc 'xcodebuild', 'Building shortcuts'
subcommand 'xcodebuild', XcodeBuild
desc 'simctl', 'Simulator setup'
subcommand 'simctl', SimCtl
desc 'codecov', 'Code coverage reports'
subcommand 'codecov', Codecov
desc 'pod', 'CocoaPods commands'
subcommand 'pod', Pod
desc 'version', 'Updates source versions'
subcommand 'version', Version
desc 'release', 'Releases of new source versions'
subcommand 'release', Release
desc 'carthage', 'Prepares Carthage releases'
subcommand 'carthage', Carthage
desc 'issues', 'Github Issues reporter'
subcommand 'issues', Issues
end
end
Calypso::CLI.start