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);
@ -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());
}
}
} }