use same version var on cli app as header All checks were successful ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent 7b35a192bf
commit 1b6ea4b6e1
1 changed files with 2 additions and 4 deletions
6 main.go
6
main.go | @ -8,15 +8,13 @@ import ( | |||
"github.com/urfave/cli/v2" | ||||
| ||||
"codeberg.org/codeberg/pages/cmd" | ||||
"codeberg.org/codeberg/pages/server/version" | ||||
) | ||||
| ||||
// can be changed with -X on compile | ||||
var version = "dev" | ||||
| ||||
func main() { | ||||
app := cli.NewApp() | ||||
app.Name = "pages-server" | ||||
app.Version = version | ||||
app.Version = version.Version | ||||
app.Usage = "pages server" | ||||
app.Action = cmd.Serve | ||||
app.Flags = cmd.ServerFlags | ||||
| |
Loading…
Add table
Add a link
Reference in a new issue