lobby2/cli/main.go

43 lines
637 B
Go
Raw Normal View History

2024-12-08 01:30:07 +00:00
package main
import (
"log"
"os"
"github.com/urfave/cli/v2"
)
func main() {
app := &cli.App{
Name: "",
Usage: "",
Commands: []*cli.Command{
{
Name: "master",
Usage: "Runs master node API",
Action: masterAction,
},
{
Name: "node",
Usage: "Runs node on local machine",
Action: nodeAction,
},
{
Name: "print",
Usage: "Prints all discovered nodes",
Action: printAction,
},
2024-12-22 12:40:50 +00:00
{
Name: "prometheus",
Usage: "Prints Prometheus Service Discovery",
Action: prometheusAction,
},
2024-12-08 01:30:07 +00:00
},
}
err := app.Run(os.Args)
if err != nil {
log.Fatal(err)
}
}