mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2024-11-26 05:55:27 +00:00
7b35a192bf
Deprecate **pogreb**! close #169 Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/173
32 lines
514 B
Go
32 lines
514 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
_ "github.com/joho/godotenv/autoload"
|
|
"github.com/urfave/cli/v2"
|
|
|
|
"codeberg.org/codeberg/pages/cmd"
|
|
)
|
|
|
|
// can be changed with -X on compile
|
|
var version = "dev"
|
|
|
|
func main() {
|
|
app := cli.NewApp()
|
|
app.Name = "pages-server"
|
|
app.Version = version
|
|
app.Usage = "pages server"
|
|
app.Action = cmd.Serve
|
|
app.Flags = cmd.ServerFlags
|
|
app.Commands = []*cli.Command{
|
|
cmd.Certs,
|
|
}
|
|
|
|
if err := app.Run(os.Args); err != nil {
|
|
_, _ = fmt.Fprintln(os.Stderr, err)
|
|
os.Exit(1)
|
|
}
|
|
}
|