mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-13 20:51:41 +00:00
23 lines
353 B
Go
23 lines
353 B
Go
package main
|
|
|
|
import (
|
|
"github.com/codegangsta/cli"
|
|
"os"
|
|
)
|
|
|
|
func main() {
|
|
app := cli.NewApp()
|
|
app.Name = "drone"
|
|
app.Version = "1.0"
|
|
app.Usage = "command line utility"
|
|
app.EnableBashCompletion = true
|
|
|
|
app.Commands = []cli.Command{
|
|
NewEnableCommand(),
|
|
NewDisableCommand(),
|
|
NewRestartCommand(),
|
|
NewWhoamiCommand(),
|
|
}
|
|
|
|
app.Run(os.Args)
|
|
}
|