PHP Класс Acacha\Llum\Console\GithubInitCommand

Наследование: extends LlumCommand, use trait GithubCommand
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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.

Открытые методы

Метод Описание
__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.

Защищенные методы

Метод Описание
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.

Описание методов

__construct() публичный метод

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

configure() публичный метод

Configure command.
public configure ( )

getGithubUserNameFromConfig() защищенный метод

Get github username from llum config.
protected getGithubUserNameFromConfig ( Symfony\Component\Console\Output\OutputInterface $output ) : array
$output Symfony\Component\Console\Output\OutputInterface
Результат array

getRepoURL() публичный метод

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
Результат string

gitHubInitRepo() публичный метод

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() защищенный метод

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
Результат array | mixed

repoName() защищенный метод

Obtain repo name.
protected repoName ( Symfony\Component\Console\Input\InputInterface $input ) : mixed | string
$input Symfony\Component\Console\Input\InputInterface
Результат mixed | string

runGitAdd() защищенный метод

Run git add command.
protected runGitAdd ( )

runGitCommit() защищенный метод

Run git commit command.
protected runGitCommit ( )

runGitCreateRepo() защищенный метод

Run llum github:repo command.
protected runGitCreateRepo ( )

runGitInit() защищенный метод

Run git init command.
protected runGitInit ( )

runGitPull() защищенный метод

Run git pull.
protected runGitPull ( )

runGitPush() защищенный метод

Run git push.
protected runGitPush ( )

runGitRemoteAddOrigin() защищенный метод

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

Описание свойств

$commandDescription защищенное свойство

Command description.
protected string $commandDescription
Результат string

$commandName защищенное свойство

Command name.
protected string $commandName
Результат string

$method защищенное свойство

Method to execute.
protected string $method
Результат string

$output защищенное свойство

Symfony console output.
protected OutputInterface,Symfony\Component\Console\Output $output
Результат Symfony\Component\Console\Output\OutputInterface

$parser защищенное свойство

Llum rc file parser.
protected LlumRCParser,Acacha\Llum\Parser $parser
Результат Acacha\Llum\Parser\LlumRCParser