mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-04-29 06:54:43 +00:00
21 lines
393 B
Go
21 lines
393 B
Go
package autoscale
|
|
|
|
import (
|
|
"github.com/urfave/cli"
|
|
|
|
"github.com/laszlocph/drone-oss-08/cli/drone/internal"
|
|
)
|
|
|
|
var autoscaleResumeCmd = cli.Command{
|
|
Name: "resume",
|
|
Usage: "resume the autoscaler",
|
|
Action: autoscaleResume,
|
|
}
|
|
|
|
func autoscaleResume(c *cli.Context) error {
|
|
client, err := internal.NewAutoscaleClient(c)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
return client.AutoscaleResume()
|
|
}
|