PHP Trait Laravel\Envoy\Console\Command

Show file Open project: laravel/envoy

Public Methods

Method Description
argument ( string $key ) : string Get an argument from the input.
ask ( string $question ) : string Ask the user the given question.
confirmTaskWithUser ( string $task, string $question ) : boolean Confirm the operation with the user.
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer Execute the command.
option ( string $key ) : string Get an option from the input.
secret ( string $question ) : string Ask the user the given secret question.

Method Details

argument() public method

Get an argument from the input.
public argument ( string $key ) : string
$key string
return string

ask() public method

Ask the user the given question.
public ask ( string $question ) : string
$question string
return string

confirmTaskWithUser() public method

Confirm the operation with the user.
public confirmTaskWithUser ( string $task, string $question ) : boolean
$task string
$question string
return boolean

execute() public method

Execute the command.
public execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
return integer

option() public method

Get an option from the input.
public option ( string $key ) : string
$key string
return string

secret() public method

Ask the user the given secret question.
public secret ( string $question ) : string
$question string
return string