github.com/ablease/cli@v6.37.1-0.20180613014814-3adbb7d7fb19+incompatible/command/v2/scale_command.go (about) 1 package v2 2 3 import ( 4 "code.cloudfoundry.org/cli/command" 5 "code.cloudfoundry.org/cli/command/flag" 6 "code.cloudfoundry.org/cli/command/translatableerror" 7 ) 8 9 type ScaleCommand struct { 10 RequiredArgs flag.AppName `positional-args:"yes"` 11 ForceRestart bool `short:"f" description:"Force restart of app without prompt"` 12 NumInstances int `short:"i" description:"Number of instances"` 13 DiskLimit string `short:"k" description:"Disk limit (e.g. 256M, 1024M, 1G)"` 14 MemoryLimit string `short:"m" description:"Memory limit (e.g. 256M, 1024M, 1G)"` 15 usage interface{} `usage:"CF_NAME scale APP_NAME [-i INSTANCES] [-k DISK] [-m MEMORY] [-f]"` 16 relatedCommands interface{} `related_commands:"push"` 17 } 18 19 func (ScaleCommand) Setup(config command.Config, ui command.UI) error { 20 return nil 21 } 22 23 func (ScaleCommand) Execute(args []string) error { 24 return translatableerror.UnrefactoredCommandError{} 25 }