mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-22 09:44:50 +00:00
adding stubs for command line API
This commit is contained in:
23
client/command/main.go
Normal file
23
client/command/main.go
Normal file
@@ -0,0 +1,23 @@
|
||||
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)
|
||||
}
|
Reference in New Issue
Block a user