-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.go
More file actions
34 lines (28 loc) · 849 Bytes
/
main.go
File metadata and controls
34 lines (28 loc) · 849 Bytes
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
package main
import (
"bus/cli"
init_c "bus/cli/init"
"bus/cli/install"
"bus/cli/run"
"os"
)
var app = cli.NewApp(
"bus",
"Monorepo manager usable with several programming languages (not only JS)",
"0.1.0-beta",
)
func main() {
app.AddFlag(cli.NewFlag("config", "Change the config file used (by default: .bus.yaml)", cli.String, "c"))
app.AddFlag(cli.NewFlag("dry-run", "Show which script bus execute without execute it (muter characters do not work)", cli.Bool, "dr", "d"))
app.AddCommand(init_c.NewInitCommand())
app.AddCommand(run.NewRunCommand())
app.AddCommand(install.NewInstallCommand())
app.AddCommandFromExe(cli.ExeCommand{
File: "proxy",
Name: "proxy",
Description: "Server proxy for bus",
})
app.SetHelpCommand()
app.SetVersionCommand()
app.Run(os.Args[1:])
}