Minor formatting corrections
This commit is contained in:
parent
2c245a2264
commit
d1cd0b50aa
4 changed files with 24 additions and 25 deletions
|
@ -25,9 +25,9 @@
|
|||
// TODO: Make copyright not hard-coded.
|
||||
print(\ncc\Utilities\Functions::getBanner(NCC_VERSION_BRANCH . ' ' . NCC_VERSION_NUMBER, 'Copyright (c) 2022-2022 Nosial', $basic_ascii) . PHP_EOL);
|
||||
|
||||
Console::out('Usage: ncc COMMAND [options]' . PHP_EOL);
|
||||
Console::out('Alternative Usage: ncc.php --ncc-cli=COMMAND [options]' . PHP_EOL . PHP_EOL);
|
||||
Console::out('Nosial Code Compiler / Project Toolkit' . PHP_EOL . PHP_EOL);
|
||||
Console::out('Usage: ncc COMMAND [options]');
|
||||
Console::out('Alternative Usage: ncc.php --ncc-cli=COMMAND [options]' . PHP_EOL);
|
||||
Console::out('Nosial Code Compiler / Project Toolkit' . PHP_EOL);
|
||||
|
||||
self::displayMainOptions();
|
||||
self::displayManagementCommands();
|
||||
|
@ -53,12 +53,11 @@
|
|||
];
|
||||
$options_padding = \ncc\Utilities\Functions::detectParametersPadding($options) + 4;
|
||||
|
||||
Console::out('Options:' . PHP_EOL);
|
||||
Console::out('Options:');
|
||||
foreach($options as $option)
|
||||
{
|
||||
Console::out(' ' . $option->toString($options_padding) . PHP_EOL);
|
||||
Console::out(' ' . $option->toString($options_padding));
|
||||
}
|
||||
print(PHP_EOL);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -76,12 +75,11 @@
|
|||
];
|
||||
$commands_padding = \ncc\Utilities\Functions::detectParametersPadding($commands) + 2;
|
||||
|
||||
Console::out('Management Commands:' . PHP_EOL);
|
||||
Console::out('Management Commands:');
|
||||
foreach($commands as $command)
|
||||
{
|
||||
Console::out(' ' . $command->toString($commands_padding) . PHP_EOL);
|
||||
Console::out(' ' . $command->toString($commands_padding));
|
||||
}
|
||||
print(PHP_EOL);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -97,12 +95,11 @@
|
|||
];
|
||||
$commands_padding = \ncc\Utilities\Functions::detectParametersPadding($commands) + 2;
|
||||
|
||||
Console::out('Commands:' . PHP_EOL);
|
||||
Console::out('Commands:');
|
||||
foreach($commands as $command)
|
||||
{
|
||||
Console::out(' ' . $command->toString($commands_padding) . PHP_EOL);
|
||||
Console::out(' ' . $command->toString($commands_padding));
|
||||
}
|
||||
print(PHP_EOL);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -117,11 +114,10 @@
|
|||
];
|
||||
$extensions_padding = \ncc\Utilities\Functions::detectParametersPadding($extensions) + 2;
|
||||
|
||||
print('Extensions:' . PHP_EOL);
|
||||
Console::out('Extensions:');
|
||||
foreach($extensions as $command)
|
||||
{
|
||||
print(' ' . $command->toString($extensions_padding) . PHP_EOL);
|
||||
}
|
||||
print(PHP_EOL);
|
||||
Console::out(' ' . $command->toString($extensions_padding));
|
||||
}
|
||||
}
|
||||
}
|
|
@ -29,9 +29,13 @@
|
|||
switch(strtolower($args['ncc-cli']))
|
||||
{
|
||||
default:
|
||||
Console::out('Unknown command ' . strtolower($args['ncc-cli']) . PHP_EOL);
|
||||
Console::out('Unknown command ' . strtolower($args['ncc-cli']));
|
||||
exit(1);
|
||||
|
||||
case 'project':
|
||||
ProjectMenu::start($args);
|
||||
exit(0);
|
||||
|
||||
case 'credential':
|
||||
CredentialMenu::start($args);
|
||||
exit(0);
|
||||
|
@ -44,7 +48,7 @@
|
|||
}
|
||||
catch(Exception $e)
|
||||
{
|
||||
Console::out('Error: ' . $e->getMessage() . ' (Code: ' . $e->getCode() . ')' . PHP_EOL);
|
||||
Console::out('Error: ' . $e->getMessage() . ' (Code: ' . $e->getCode() . ')');
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
|
|
@ -120,8 +120,7 @@
|
|||
Console::out('Options:' . PHP_EOL);
|
||||
foreach($options as $option)
|
||||
{
|
||||
Console::out(' ' . $option->toString($options_padding) . PHP_EOL);
|
||||
}
|
||||
print(PHP_EOL);
|
||||
Console::out(' ' . $option->toString($options_padding));
|
||||
}
|
||||
}
|
||||
}
|
|
@ -17,23 +17,23 @@
|
|||
/**
|
||||
* The selected directory for managing the project
|
||||
*
|
||||
* @var string
|
||||
* @var string|null
|
||||
*/
|
||||
private string $SelectedDirectory;
|
||||
private ?string $SelectedDirectory;
|
||||
|
||||
/**
|
||||
* The path that points to the project's main project.json file
|
||||
*
|
||||
* @var string
|
||||
* @var string|null
|
||||
*/
|
||||
private string $ProjectFilePath;
|
||||
private ?string $ProjectFilePath;
|
||||
|
||||
/**
|
||||
* The path that points the project's main directory
|
||||
*
|
||||
* @var string
|
||||
* @var string|null
|
||||
*/
|
||||
private string $ProjectPath;
|
||||
private ?string $ProjectPath;
|
||||
|
||||
/**
|
||||
* Public Constructor
|
||||
|
|
Loading…
Add table
Reference in a new issue