forked from cloudfoundry/cli
/
scale_command.go
25 lines (21 loc) · 946 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
package v6
import (
"code.cloudfoundry.org/cli/command"
"code.cloudfoundry.org/cli/command/flag"
"code.cloudfoundry.org/cli/command/translatableerror"
)
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 {
return translatableerror.UnrefactoredCommandError{}
}