PHP Class Platformsh\Cli\Command\Environment\EnvironmentCheckoutCommand

Inheritance: extends Platformsh\Cli\Command\PlatformCommand
Show file Open project: commerceguys/platform-cli

Protected Methods

Method Description
configure ( )
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
offerBranchChoice ( Platformsh\Client\Model\Project $project, string $projectRoot ) : string | false Prompt the user to select a branch to checkout.

Method Details

configure() protected method

protected configure ( )

execute() protected method

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface

offerBranchChoice() protected method

Prompt the user to select a branch to checkout.
protected offerBranchChoice ( Platformsh\Client\Model\Project $project, string $projectRoot ) : string | false
$project Platformsh\Client\Model\Project
$projectRoot string
return string | false The branch name, or false on failure.