mirror of
https://github.com/drone/drone-cli.git
synced 2024-11-23 17:22:09 +01:00
21 lines
354 B
Go
21 lines
354 B
Go
package queue
|
|
|
|
import (
|
|
"github.com/drone/drone-cli/drone/internal"
|
|
"github.com/urfave/cli"
|
|
)
|
|
|
|
var queuePauseCmd = cli.Command{
|
|
Name: "pause",
|
|
Usage: "pause queue operations",
|
|
Action: queuePause,
|
|
}
|
|
|
|
func queuePause(c *cli.Context) (err error) {
|
|
client, err := internal.NewClient(c)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
return client.QueuePause()
|
|
}
|