ace/main.go

39 lines
633 B
Go
Raw Normal View History

2022-09-26 03:04:07 +00:00
package main
import (
"os"
"git.sense-t.eu.org/ACE/ace/cmd/config"
"git.sense-t.eu.org/ACE/ace/cmd/server"
"github.com/sirupsen/logrus"
"github.com/urfave/cli/v2"
)
func init() {
2022-09-26 08:07:25 +00:00
logrus.SetReportCaller(true)
2022-09-26 03:04:07 +00:00
}
func main() {
app := &cli.App{
Name: "ace",
Usage: "cloud emulator",
Commands: []*cli.Command{
config.Command,
server.Command,
},
Flags: []cli.Flag{
&cli.StringFlag{
Name: "config",
Usage: "config file",
Aliases: []string{"c"},
EnvVars: []string{"ACE_CONFIG"},
Value: "config.yaml",
},
},
}
if err := app.Run(os.Args); err != nil {
logrus.Panic(err)
}
}