mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-13 03:56:39 +00:00
27 lines
395 B
Go
27 lines
395 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"os"
|
||
|
|
||
|
"github.com/urfave/cli"
|
||
|
|
||
|
_ "github.com/joho/godotenv/autoload"
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
app := cli.NewApp()
|
||
|
app.Name = "pipec"
|
||
|
app.Usage = "pipec provides command line tools for the cncd runtime"
|
||
|
app.Commands = []cli.Command{
|
||
|
compileCommand,
|
||
|
executeCommand,
|
||
|
lintCommand,
|
||
|
}
|
||
|
|
||
|
if err := app.Run(os.Args); err != nil {
|
||
|
fmt.Println(err)
|
||
|
os.Exit(1)
|
||
|
}
|
||
|
}
|