| 10 | ) |
| 11 | |
| 12 | type CreatePackageCommand struct { |
| 13 | BaseCommand |
| 14 | |
| 15 | RequiredArgs flag.AppName `positional-args:"yes"` |
| 16 | DockerImage flag.DockerImage `long:"docker-image" short:"o" description:"Docker image to use (e.g. user/docker-image-name)"` |
| 17 | AppPath flag.PathWithExistenceCheck `short:"p" description:"Path to app directory or to a zip file of the contents of the app directory"` |
| 18 | usage interface{} `usage:"CF_NAME create-package APP_NAME [-p APP_PATH | --docker-image [REGISTRY_HOST:PORT/]IMAGE[:TAG]]"` |
| 19 | relatedCommands interface{} `related_commands:"app, droplets, packages, push"` |
| 20 | |
| 21 | PackageDisplayer shared.PackageDisplayer |
| 22 | } |
| 23 | |
| 24 | func (cmd *CreatePackageCommand) Setup(config command.Config, ui command.UI) error { |
| 25 | cmd.PackageDisplayer = shared.NewPackageDisplayer(ui, config) |
nothing calls this directly
no outgoing calls
no test coverage detected