PHP Class Acacha\Llum\Console\GithubRepoCommand

Inheritance: extends LlumCommand, use trait GithubCommand
Datei anzeigen Open project: acacha/llum

Protected Properties

Property Type Description
$api Acacha\Llum\Github\GithubAPI Github api service class.
$commandDescription string Command description.
$commandName string Command name.
$method string Method to execute.
$parser Acacha\Llum\Parser\LlumRCParser Llum rc file parser.

Public Methods

Method Description
__construct ( GithubAPI $api, LlumRCParser $parser ) GithubRepoCommand constructor.
configure ( ) Configure command.
getCredentials ( Symfony\Component\Console\Output\OutputInterface $output ) : array Get credentials.
githubCreateRepo ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) Github create repo command.

Protected Methods

Method Description
repoDescription ( Symfony\Component\Console\Input\InputInterface $input ) : mixed | string Obtain repo description.
repoName ( Symfony\Component\Console\Input\InputInterface $input ) : mixed | string Obtain repo name.
showError ( GuzzleHttp\Exception\ClientException $ce, Symfony\Component\Console\Output\OutputInterface $output ) Show error.

Method Details

__construct() public method

GithubRepoCommand constructor.
public __construct ( GithubAPI $api, LlumRCParser $parser )
$api Acacha\Llum\Github\GithubAPI
$parser Acacha\Llum\Parser\LlumRCParser

configure() public method

Configure command.
public configure ( )

getCredentials() public method

Get credentials.
public getCredentials ( Symfony\Component\Console\Output\OutputInterface $output ) : array
$output Symfony\Component\Console\Output\OutputInterface
return array

githubCreateRepo() public method

Github create repo command.
public githubCreateRepo ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface

repoDescription() protected method

Obtain repo description.
protected repoDescription ( Symfony\Component\Console\Input\InputInterface $input ) : mixed | string
$input Symfony\Component\Console\Input\InputInterface
return mixed | string

repoName() protected method

Obtain repo name.
protected repoName ( Symfony\Component\Console\Input\InputInterface $input ) : mixed | string
$input Symfony\Component\Console\Input\InputInterface
return mixed | string

showError() protected method

Show error.
protected showError ( GuzzleHttp\Exception\ClientException $ce, Symfony\Component\Console\Output\OutputInterface $output )
$ce GuzzleHttp\Exception\ClientException
$output Symfony\Component\Console\Output\OutputInterface

Property Details

$api protected_oe property

Github api service class.
protected GithubAPI,Acacha\Llum\Github $api
return Acacha\Llum\Github\GithubAPI

$commandDescription protected_oe property

Command description.
protected string $commandDescription
return string

$commandName protected_oe property

Command name.
protected string $commandName
return string

$method protected_oe property

Method to execute.
protected string $method
return string

$parser protected_oe property

Llum rc file parser.
protected LlumRCParser,Acacha\Llum\Parser $parser
return Acacha\Llum\Parser\LlumRCParser