Свойство | Тип | Описание | |
---|---|---|---|
$commandDescription | string | Command description. | |
$commandName | string | Command name. | |
$method | string | Method to execute. | |
$output | Symfony\Component\Console\Output\OutputInterface | Symfony console output. | |
$parser | Llum rc file parser. |
Метод | Описание | |
---|---|---|
__construct ( |
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. |
public __construct ( |
||
$parser |
protected getGithubUserNameFromConfig ( Symfony\Component\Console\Output\OutputInterface $output ) : array | ||
$output | Symfony\Component\Console\Output\OutputInterface | |
Результат | array |
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 |
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 |
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 |
protected runGitRemoteAddOrigin ( $url ) | ||
$url |
protected string $commandDescription | ||
Результат | string |
protected OutputInterface,Symfony\Component\Console\Output $output | ||
Результат | Symfony\Component\Console\Output\OutputInterface |