Add configuration classes, enums, and database handling for FileServer
Some checks failed
Docker CI/CD / build-and-save (push) Has been cancelled
Docker CI/CD / build-and-push (push) Has been cancelled
CI / release (push) Has been cancelled
CI / debug (push) Has been cancelled
CI / release_executable (push) Has been cancelled
CI / debug_executable (push) Has been cancelled
CI / check-phpunit (push) Has been cancelled
CI / check-phpdoc (push) Has been cancelled
CI / generate-phpdoc (push) Has been cancelled
CI / test (push) Has been cancelled
CI / release-documentation (push) Has been cancelled
CI / release-artifacts (push) Has been cancelled

This commit is contained in:
netkas 2025-05-15 21:05:40 -04:00
parent 8db44e90d5
commit 72da412737
Signed by: netkas
GPG key ID: 4D8629441B76E4CC
45 changed files with 3837 additions and 10 deletions

6
main
View file

@ -2,7 +2,7 @@
if (PHP_SAPI !== 'cli')
{
print('net.nosial.file_server must be run from the command line.' . PHP_EOL);
print('net.nosial.fileserver must be run from the command line.' . PHP_EOL);
exit(1);
}
@ -14,11 +14,11 @@
}
else
{
print('net.nosial.file_server failed to run, no $argv found.' . PHP_EOL);
print('net.nosial.fileserver failed to run, no $argv found.' . PHP_EOL);
exit(1);
}
}
require('ncc');
\ncc\Classes\Runtime::import('net.nosial.file_server', 'latest');
\ncc\Classes\Runtime::import('net.nosial.fileserver', 'latest');
exit(\FileServer\Program::main($argv));