mirror of
https://github.com/Cacti/cacti.git
synced 2026-10-30 08:37:01 +09:00
* feat(cli): add unified command frontend and normalize legacy failures Add the Symfony-backed bin/cacti entry point while preserving legacy argument, terminal, signal, and exit-status behavior. Fold in the focused legacy CLI correctness fixes from #7906 without adding its unused parser abstraction. Keep path containment and the PHP 8.3 floor out of this review; the latter remains in #7939. Signed-off-by: Thomas Vincent <thomasvincent@gmail.com> * fix(cli): enforce PHP floor and deny web dispatch --------- Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
9 lines
183 B
PHP
9 lines
183 B
PHP
<?php
|
|
|
|
require_once dirname(__DIR__, 4) . '/include/cli_only.php';
|
|
|
|
fwrite(STDOUT, json_encode(array_slice($argv, 1), JSON_THROW_ON_ERROR));
|
|
fwrite(STDERR, 'probe-error');
|
|
|
|
exit(23);
|