github.com/dcarley/cf-cli@v6.24.1-0.20170220111324-4225ff346898+incompatible/command/v2/push_command.go (about) 1 package v2 2 3 import ( 4 "os" 5 6 "code.cloudfoundry.org/cli/cf/cmd" 7 "code.cloudfoundry.org/cli/command" 8 "code.cloudfoundry.org/cli/command/flag" 9 ) 10 11 type PushCommand struct { 12 AppPorts string `long:"app-ports" description:"Comma delimited list of ports the application may listen on" hidden:"true"` //TODO: Custom AppPorts flag 13 BuildpackName string `short:"b" description:"Custom buildpack by name (e.g. my-buildpack) or Git URL (e.g. 'https://github.com/cloudfoundry/java-buildpack.git') or Git URL with a branch or tag (e.g. 'https://github.com/cloudfoundry/java-buildpack.git#v3.3.0' for 'v3.3.0' tag). To use built-in buildpacks only, specify 'default' or 'null'"` 14 StartupCommand string `short:"c" description:"Startup command, set to null to reset to default start command"` 15 Domain string `short:"d" description:"Domain (e.g. example.com)"` 16 DockerImage string `long:"docker-image" short:"o" description:"Docker-image to be used (e.g. user/docker-image-name)"` 17 PathToManifest flag.Filename `short:"f" description:"Path to manifest"` 18 HealthCheckType flag.HealthCheckType `long:"health-check-type" short:"u" description:"Application health check type (Default: 'port', 'none' accepted for 'process', 'http' implies endpoint '/')"` 19 Hostname string `long:"hostname" short:"n" description:"Hostname (e.g. my-subdomain)"` 20 NumInstances int `short:"i" description:"Number of instances"` 21 DiskLimit string `short:"k" description:"Disk limit (e.g. 256M, 1024M, 1G)"` 22 MemoryLimit string `short:"m" description:"Memory limit (e.g. 256M, 1024M, 1G)"` 23 NoHostname bool `long:"no-hostname" description:"Map the root domain to this app"` 24 NoManifest bool `long:"no-manifest" description:"Ignore manifest file"` 25 NoRoute bool `long:"no-route" description:"Do not map a route to this app and remove routes from previous pushes of this app"` 26 NoStart bool `long:"no-start" description:"Do not start an app after pushing"` 27 DirectoryPath flag.Filename `short:"p" description:"Path to app directory or to a zip file of the contents of the app directory"` 28 RandomRoute bool `long:"random-route" description:"Create a random route for this app"` 29 RoutePath string `long:"route-path" description:"Path for the route"` 30 Stack string `short:"s" description:"Stack to use (a stack is a pre-built file system, including an operating system, that can run apps)"` 31 ApplicationStartTime int `short:"t" description:"Time (in seconds) allowed to elapse between starting up an app and the first healthy response from the app"` 32 usage interface{} `usage:"Push a single app (with or without a manifest):\n CF_NAME push APP_NAME [-b BUILDPACK_NAME] [-c COMMAND] [-d DOMAIN] [-f MANIFEST_PATH] [--docker-image DOCKER_IMAGE]\n [-i NUM_INSTANCES] [-k DISK] [-m MEMORY] [--hostname HOST] [-p PATH] [-s STACK] [-t TIMEOUT] [-u (process | port | http)] [--route-path ROUTE_PATH]\n [--no-hostname] [--no-manifest] [--no-route] [--no-start] [--random-route]\n\n Push multiple apps with a manifest:\n cf push [-f MANIFEST_PATH]"` 33 envCFStagingTimeout interface{} `environmentName:"CF_STAGING_TIMEOUT" environmentDescription:"Max wait time for buildpack staging, in minutes" environmentDefault:"15"` 34 envCFStartupTimeout interface{} `environmentName:"CF_STARTUP_TIMEOUT" environmentDescription:"Max wait time for app instance startup, in minutes" environmentDefault:"5"` 35 relatedCommands interface{} `related_commands:"apps, create-app-manifest, logs, ssh, start"` 36 } 37 38 func (_ PushCommand) Setup(config command.Config, ui command.UI) error { 39 return nil 40 } 41 42 func (_ PushCommand) Execute(args []string) error { 43 cmd.Main(os.Getenv("CF_TRACE"), os.Args) 44 return nil 45 }