]> BookStack Code Mirror - system-cli/commit
Added some CLI change handling to prevent errors
authorDan Brown <redacted>
Sun, 9 Mar 2025 16:00:51 +0000 (16:00 +0000)
committerDan Brown <redacted>
Sun, 9 Mar 2025 16:00:51 +0000 (16:00 +0000)
commit64190bc3dd9ec02bcb4ebe55e1a03d02979b544c
tree2fa94503281de05ae5350be037f18cde0214de9e
parentb0e4bd51db4d0faa12400b83b11e9a369c4bad8c
Added some CLI change handling to prevent errors

Added proper detection of CLI changes, with early quite and output to
tell user to re-run, instead of erroring with a stack trace.
Used in scenario where the CLI will change itself as part of BookStack
updates.

Toyed with the idea of pre-compiling CLI PHP files, or handling the
scenario to switch to the new CLI version, but those are a lot more
complex and potentially error prone.
composer.lock
src/Commands/UpdateCommand.php