mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-19 09:14:27 +08:00
update third party dependencies
This commit is contained in:
@@ -1,30 +1,36 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"log"
|
||||
"os"
|
||||
|
||||
"github.com/urfave/cli"
|
||||
"github.com/urfave/cli/v2"
|
||||
|
||||
"github.com/mayswind/lab/cmd"
|
||||
)
|
||||
|
||||
|
||||
const LAB_VERSION = "0.1.0"
|
||||
|
||||
func main() {
|
||||
app := cli.NewApp()
|
||||
app.Name = "lab"
|
||||
app.Usage = "A lightweight account book app hosted by yourself."
|
||||
app.Version = LAB_VERSION
|
||||
app.Commands = []cli.Command{
|
||||
cmd.WebServer,
|
||||
cmd.Database,
|
||||
}
|
||||
app.Flags = []cli.Flag{
|
||||
cli.StringFlag{
|
||||
Name: "conf-path",
|
||||
Usage: "Custom config `FILE` path",
|
||||
app := &cli.App {
|
||||
Name: "lab",
|
||||
Usage: "A lightweight account book app hosted by yourself.",
|
||||
Version: LAB_VERSION,
|
||||
Commands: []*cli.Command{
|
||||
cmd.WebServer,
|
||||
cmd.Database,
|
||||
},
|
||||
Flags: []cli.Flag{
|
||||
&cli.StringFlag{
|
||||
Name: "conf-path",
|
||||
Usage: "Custom config `FILE` path",
|
||||
},
|
||||
},
|
||||
}
|
||||
app.Run(os.Args)
|
||||
|
||||
err := app.Run(os.Args)
|
||||
|
||||
if err != nil {
|
||||
log.Fatalf("Failed to run lab app with %s: %v", os.Args, err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user