mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-22 04:23:01 +00:00
feature-cli: fix version subcommand
This commit is contained in:
parent
d3a918af7a
commit
f72062332a
1 changed files with 1 additions and 0 deletions
|
@ -9,6 +9,7 @@ register_module([
|
|||
global $settings;
|
||||
|
||||
cli_register("version", "Shows the current version of Pepperminty Wiki", function(array $_args) : int {
|
||||
global $version, $commit;
|
||||
echo("$version-".substr($commit, 0, 7)."\n");
|
||||
return 0;
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue