hostas2/bin/hostasctl

14 lines
279 B
Plaintext
Raw Normal View History

2024-09-01 18:54:41 +00:00
#!/usr/bin/env php
<?php
if ($argc === 1) {
echo 'Error: No sub-command provided. Please specify a sub-command' . PHP_EOL;
die();
}
try {
require_once(dirname($_SERVER['SCRIPT_NAME']) . "/{$argv[1]}.php");
} catch (err) {
echo "Unknown sub-command '$argv[1]'" . PHP_EOL;
}