forked from cloudfoundry/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
scale_command.go
28 lines (23 loc) · 935 Bytes
/
scale_command.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package v2
import (
"os"
"code.cloudfoundry.org/cli/cf/cmd"
"code.cloudfoundry.org/cli/command"
"code.cloudfoundry.org/cli/command/flag"
)
type ScaleCommand struct {
RequiredArgs flag.AppName `positional-args:"yes"`
ForceRestart bool `short:"f" description:"Force restart of app without prompt"`
NumInstances int `short:"i" description:"Number of instances"`
DiskLimit string `short:"k" description:"Disk limit (e.g. 256M, 1024M, 1G)"`
MemoryLimit string `short:"m" description:"Memory limit (e.g. 256M, 1024M, 1G)"`
usage interface{} `usage:"CF_NAME scale APP_NAME [-i INSTANCES] [-k DISK] [-m MEMORY] [-f]"`
relatedCommands interface{} `related_commands:"push"`
}
func (ScaleCommand) Setup(config command.Config, ui command.UI) error {
return nil
}
func (ScaleCommand) Execute(args []string) error {
cmd.Main(os.Getenv("CF_TRACE"), os.Args)
return nil
}