| 11 | ) |
| 12 | |
| 13 | type StartCommand struct { |
| 14 | BaseCommand |
| 15 | |
| 16 | RequiredArgs flag.AppName `positional-args:"yes"` |
| 17 | usage interface{} `usage:"CF_NAME start APP_NAME\n\n If the app's most recent package is unstaged, starting the app will stage and run that package.\n Otherwise, the app's current droplet will be run."` |
| 18 | relatedCommands interface{} `related_commands:"apps, logs, scale, ssh, stop, restart, run-task"` |
| 19 | envCFStagingTimeout interface{} `environmentName:"CF_STAGING_TIMEOUT" environmentDescription:"Max wait time for staging, in minutes" environmentDefault:"15"` |
| 20 | envCFStartupTimeout interface{} `environmentName:"CF_STARTUP_TIMEOUT" environmentDescription:"Max wait time for app instance startup, in minutes" environmentDefault:"5"` |
| 21 | |
| 22 | LogCacheClient sharedaction.LogCacheClient |
| 23 | Stager shared.AppStager |
| 24 | } |
| 25 | |
| 26 | func (cmd *StartCommand) Setup(config command.Config, ui command.UI) error { |
| 27 | err := cmd.BaseCommand.Setup(config, ui) |
nothing calls this directly
no outgoing calls
no test coverage detected