Updated \ncc\CLI > Main
This commit is contained in:
parent
b5cc0d4b70
commit
625a4184d8
1 changed files with 13 additions and 2 deletions
|
@ -138,6 +138,10 @@
|
||||||
SourcesMenu::start(self::$args);
|
SourcesMenu::start(self::$args);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'version':
|
||||||
|
Console::out(sprintf('NCC version %s (%s)', NCC_VERSION_NUMBER, NCC_VERSION_BRANCH));
|
||||||
|
break;
|
||||||
|
|
||||||
case '1':
|
case '1':
|
||||||
case 'help':
|
case 'help':
|
||||||
HelpMenu::start(self::$args);
|
HelpMenu::start(self::$args);
|
||||||
|
@ -188,9 +192,16 @@
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public static function shutdown(): void
|
public static function shutdown(): void
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
RuntimeCache::clearCache();
|
RuntimeCache::clearCache();
|
||||||
Functions::finalizePermissions();
|
Functions::finalizePermissions();
|
||||||
}
|
}
|
||||||
|
catch (Exception $e)
|
||||||
|
{
|
||||||
|
Console::outWarning('An error occurred while shutting down NCC, ' . $e->getMessage());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue