package main import ( "fmt" "os" "git.t-juice.club/torjus/gpaste/cmd/server/actions" "github.com/urfave/cli/v2" ) var ( version = "dev" commit = "none" date = "unknown" ) func main() { cli.VersionFlag = &cli.BoolFlag{Name: "version"} app := cli.App{ Name: "gpaste-server", Version: fmt.Sprintf("gpaste-server %s-%s (%s)", version, commit, date), Flags: []cli.Flag{ &cli.StringFlag{ Name: "config", Usage: "Path to config-file.", }, }, Action: actions.ActionServe, } _ = app.Run(os.Args) }