Refactor 😮‍💨

This commit is contained in:
2024-11-26 18:28:48 -05:00
parent 7485729fd0
commit 8bcb8d3f20
17 changed files with 146 additions and 526 deletions

26
pkg/cmds/root.go Normal file

@ -0,0 +1,26 @@
package cmd
import (
"github.com/urfave/cli/v2"
"os"
"path/filepath"
)
var (
appName = filepath.Base(os.Args[0])
commonFlag = []cli.Flag{
&cli.BoolFlag{
Name: "debug",
Usage: "Enable debug logging",
},
}
)
func NewApp() *cli.App {
app := cli.NewApp()
app.Name = appName
app.Usage = "Maps API Service"
app.Flags = commonFlag
return app
}