PHP Class Acacha\Llum\Console\GithubInitCommand

Inheritance: extends LlumCommand, use trait GithubCommand
Mostrar archivo Open project: acacha/llum

Protected Properties

Property Type Description
$commandDescription string Command description.
$commandName string Command name.
$method string Method to execute.
$output Symfony\Component\Console\Output\OutputInterface Symfony console output.
$parser Acacha\Llum\Parser\LlumRCParser Llum rc file parser.

Public Methods

Method Description
__construct ( LlumRCParser $parser ) GithubInitCommand constructor.
configure ( ) Configure command.
getRepoURL ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : string Get github repo URL.
gitHubInitRepo ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) Github init repo command.

Protected Methods

Method Description
getGithubUserNameFromConfig ( Symfony\Component\Console\Output\OutputInterface $output ) : array Get github username from llum config.
gitHubUsername ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : array | mixed Get github username.
repoName ( Symfony\Component\Console\Input\InputInterface $input ) : mixed | string Obtain repo name.
runGitAdd ( ) Run git add command.
runGitCommit ( ) Run git commit command.
runGitCreateRepo ( ) Run llum github:repo command.
runGitInit ( ) Run git init command.
runGitPull ( ) Run git pull.
runGitPush ( ) Run git push.
runGitRemoteAddOrigin ( $url ) Run git remote add origin.

Method Details

__construct() public method

GithubInitCommand constructor.
public __construct ( LlumRCParser $parser )
$parser Acacha\Llum\Parser\LlumRCParser

configure() public method

Configure command.
public configure ( )

getGithubUserNameFromConfig() protected method

Get github username from llum config.
protected getGithubUserNameFromConfig ( Symfony\Component\Console\Output\OutputInterface $output ) : array
$output Symfony\Component\Console\Output\OutputInterface
return array

getRepoURL() public method

Get github repo URL.
public getRepoURL ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : string
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
return string

gitHubInitRepo() public method

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

gitHubUsername() protected method

Get github username.
protected gitHubUsername ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : array | mixed
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
return array | mixed

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

runGitAdd() protected method

Run git add command.
protected runGitAdd ( )

runGitCommit() protected method

Run git commit command.
protected runGitCommit ( )

runGitCreateRepo() protected method

Run llum github:repo command.
protected runGitCreateRepo ( )

runGitInit() protected method

Run git init command.
protected runGitInit ( )

runGitPull() protected method

Run git pull.
protected runGitPull ( )

runGitPush() protected method

Run git push.
protected runGitPush ( )

runGitRemoteAddOrigin() protected method

Run git remote add origin.
protected runGitRemoteAddOrigin ( $url )
$url

Property Details

$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

$output protected_oe property

Symfony console output.
protected OutputInterface,Symfony\Component\Console\Output $output
return Symfony\Component\Console\Output\OutputInterface

$parser protected_oe property

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