Some checks are pending
CI / release (push) Waiting to run
CI / debug (push) Waiting to run
CI / check-phpunit (push) Waiting to run
CI / check-phpdoc (push) Waiting to run
CI / test (push) Blocked by required conditions
CI / generate-phpdoc (push) Blocked by required conditions
CI / release-documentation (push) Blocked by required conditions
CI / release-artifacts (push) Blocked by required conditions
27 lines
No EOL
574 B
Text
27 lines
No EOL
574 B
Text
<?php
|
|
|
|
use FederationServer\Program;
|
|
use ncc\Classes\Runtime;
|
|
|
|
if (PHP_SAPI !== 'cli')
|
|
{
|
|
print('net.nosial.federation must be run from the command line.' . PHP_EOL);
|
|
exit(1);
|
|
}
|
|
|
|
if(!isset($argv))
|
|
{
|
|
if(isset($_SERVER['argv']))
|
|
{
|
|
$argv = $_SERVER['argv'];
|
|
}
|
|
else
|
|
{
|
|
print('net.nosial.federation failed to run, no $argv found.' . PHP_EOL);
|
|
exit(1);
|
|
}
|
|
}
|
|
|
|
require('ncc');
|
|
Runtime::import('net.nosial.federation', 'latest');
|
|
exit(Program::main($argv)); |