1
0
mirror of https://github.com/drone/drone-cli.git synced 2025-02-18 07:31:13 +01:00
drone-cli/drone/autoscale/autoscale_pause.go
2018-03-01 11:23:03 -08:00

22 lines
376 B
Go

package autoscale
import (
"github.com/urfave/cli"
"github.com/drone/drone-cli/drone/internal"
)
var autoscalePauseCmd = cli.Command{
Name: "pause",
Usage: "pause the autoscaler",
Action: autoscalePause,
}
func autoscalePause(c *cli.Context) error {
client, err := internal.NewAutoscaleClient(c)
if err != nil {
return err
}
return client.AutoscalePause()
}