Updated \ncc\CLI > Main

This commit is contained in:
Netkas 2023-01-29 13:38:02 -05:00
parent b5cc0d4b70
commit 625a4184d8

View file

@ -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);
@ -189,8 +193,15 @@
*/ */
public static function shutdown(): void public static function shutdown(): void
{ {
RuntimeCache::clearCache(); try
Functions::finalizePermissions(); {
RuntimeCache::clearCache();
Functions::finalizePermissions();
}
catch (Exception $e)
{
Console::outWarning('An error occurred while shutting down NCC, ' . $e->getMessage());
}
} }
} }