mirror of
https://github.com/drone/drone-cli.git
synced 2025-02-18 07:31:13 +01:00
22 lines
376 B
Go
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()
|
|
}
|