Cleanup
This commit is contained in:
parent
d4e710d9d9
commit
e7eecd354a
1 changed files with 8 additions and 4 deletions
|
@ -34,7 +34,7 @@
|
||||||
/**
|
/**
|
||||||
* Displays the main help menu
|
* Displays the main help menu
|
||||||
*
|
*
|
||||||
* @param $args
|
* @param array $args
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public static function start(array $args): void
|
public static function start(array $args): void
|
||||||
|
@ -57,7 +57,7 @@
|
||||||
/**
|
/**
|
||||||
* Initializes a new project
|
* Initializes a new project
|
||||||
*
|
*
|
||||||
* @param $args
|
* @param array $args
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
private static function initializeProject(array $args): void
|
private static function initializeProject(array $args): void
|
||||||
|
@ -116,6 +116,12 @@
|
||||||
Console::out(sprintf('Modify the project configuration in \'%s\'', $project_manager->getProjectPath() . DIRECTORY_SEPARATOR . 'project.json'));
|
Console::out(sprintf('Modify the project configuration in \'%s\'', $project_manager->getProjectPath() . DIRECTORY_SEPARATOR . 'project.json'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Applies a template to the project
|
||||||
|
*
|
||||||
|
* @param array $args
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
private static function applyTemplate(array $args): void
|
private static function applyTemplate(array $args): void
|
||||||
{
|
{
|
||||||
if(isset($args['path']) || isset($args['p']))
|
if(isset($args['path']) || isset($args['p']))
|
||||||
|
@ -123,7 +129,6 @@
|
||||||
$project_path = $args['path'] ?? $args['p'];
|
$project_path = $args['path'] ?? $args['p'];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
|
||||||
if(is_file(getcwd() . DIRECTORY_SEPARATOR . 'project.json'))
|
if(is_file(getcwd() . DIRECTORY_SEPARATOR . 'project.json'))
|
||||||
{
|
{
|
||||||
$project_path = getcwd();
|
$project_path = getcwd();
|
||||||
|
@ -133,7 +138,6 @@
|
||||||
Console::outError('Missing option: --path|-p, please specify the path to the project', true, 1);
|
Console::outError('Missing option: --path|-p, please specify the path to the project', true, 1);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if(isset($args['name']) || isset($args['n']))
|
if(isset($args['name']) || isset($args['n']))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue