github.com/jenspinney/cli@v6.42.1-0.20190207184520-7450c600020e+incompatible/command/v6/scale_command.go (about)

     1  package v6
     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  }