github.com/liamawhite/cli-with-i18n@v6.32.1-0.20171122084555-dede0a5c3448+incompatible/command/v2/create_space_quota_command.go (about)

     1  package v2
     2  
     3  import (
     4  	"os"
     5  
     6  	"github.com/liamawhite/cli-with-i18n/cf/cmd"
     7  	"github.com/liamawhite/cli-with-i18n/command"
     8  	"github.com/liamawhite/cli-with-i18n/command/flag"
     9  )
    10  
    11  type CreateSpaceQuotaCommand struct {
    12  	RequiredArgs                flag.SpaceQuota          `positional-args:"yes"`
    13  	NumAppInstances             int                      `short:"a" description:"Total number of application instances. -1 represents an unlimited amount. (Default: unlimited)"`
    14  	AllowPaidServicePlans       bool                     `long:"allow-paid-service-plans" description:"Can provision instances of paid service plans (Default: disallowed)"`
    15  	IndividualAppInstanceMemory flag.MemoryWithUnlimited `short:"i" description:"Maximum amount of memory an application instance can have (e.g. 1024M, 1G, 10G). -1 represents an unlimited amount. (Default: unlimited)"`
    16  	TotalMemory                 string                   `short:"m" description:"Total amount of memory a space can have (e.g. 1024M, 1G, 10G)"`
    17  	NumRoutes                   int                      `short:"r" description:"Total number of routes"`
    18  	ReservedRoutePorts          int                      `long:"reserved-route-ports" description:"Maximum number of routes that may be created with reserved ports (Default: 0)"`
    19  	NumServiceInstances         int                      `short:"s" description:"Total number of service instances"`
    20  	usage                       interface{}              `usage:"CF_NAME create-space-quota QUOTA [-i INSTANCE_MEMORY] [-m MEMORY] [-r ROUTES] [-s SERVICE_INSTANCES] [-a APP_INSTANCES] [--allow-paid-service-plans] [--reserved-route-ports RESERVED_ROUTE_PORTS]"`
    21  	relatedCommands             interface{}              `related_commands:"quotas, space-quotas"`
    22  }
    23  
    24  func (CreateSpaceQuotaCommand) Setup(config command.Config, ui command.UI) error {
    25  	return nil
    26  }
    27  
    28  func (CreateSpaceQuotaCommand) Execute(args []string) error {
    29  	cmd.Main(os.Getenv("CF_TRACE"), os.Args)
    30  	return nil
    31  }