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