mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2024-11-18 10:29:43 +00:00
use same version var on cli app as header
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"
|
"github.com/urfave/cli/v2"
|
||||||
|
|
||||||
"codeberg.org/codeberg/pages/cmd"
|
"codeberg.org/codeberg/pages/cmd"
|
||||||
|
"codeberg.org/codeberg/pages/server/version"
|
||||||
)
|
)
|
||||||
|
|
||||||
// can be changed with -X on compile
|
|
||||||
var version = "dev"
|
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
app := cli.NewApp()
|
app := cli.NewApp()
|
||||||
app.Name = "pages-server"
|
app.Name = "pages-server"
|
||||||
app.Version = version
|
app.Version = version.Version
|
||||||
app.Usage = "pages server"
|
app.Usage = "pages server"
|
||||||
app.Action = cmd.Serve
|
app.Action = cmd.Serve
|
||||||
app.Flags = cmd.ServerFlags
|
app.Flags = cmd.ServerFlags
|
||||||
|
|
Loading…
Reference in a new issue