mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-25 09:50:31 +00:00
27 lines
422 B
Go
27 lines
422 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"os"
|
||
|
|
||
|
"github.com/drone/drone/version"
|
||
|
|
||
|
_ "github.com/joho/godotenv/autoload"
|
||
|
"github.com/urfave/cli"
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
app := cli.NewApp()
|
||
|
app.Name = "drone-server"
|
||
|
app.Version = version.Version.String()
|
||
|
app.Usage = "drone server"
|
||
|
app.Action = server
|
||
|
app.Flags = flags
|
||
|
app.Before = before
|
||
|
|
||
|
if err := app.Run(os.Args); err != nil {
|
||
|
fmt.Fprintln(os.Stderr, err)
|
||
|
os.Exit(1)
|
||
|
}
|
||
|
}
|