18 lines
229 B
Go
18 lines
229 B
Go
package cli
|
|
|
|
func Main(args []string) int {
|
|
if len(args) == 0 {
|
|
return Help(nil)
|
|
}
|
|
|
|
switch args[0] {
|
|
case "build":
|
|
return Build(args[1:])
|
|
|
|
case "system":
|
|
return System(args[1:])
|
|
|
|
default:
|
|
return Help(args[1:])
|
|
}
|
|
}
|