mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: allow hydrooj addon list
This commit is contained in:
1 parent
7a784f1074
commit
9477692abb
1 file changed
+1
-1
@@ -88,7 +88,7 @@ if (!argv.args[0] || argv.args[0] === 'cli') {
|
|||||||
console.log('Successfully restored.');
|
console.log('Successfully restored.');
|
||||||
});
|
});
|
||||||
cli.command('addon [operation] [name]').action((operation, name) => {
|
cli.command('addon [operation] [name]').action((operation, name) => {
|
||||||
if (operation && !['add', 'remove', 'create'].includes(operation)) {
|
if (operation && !['add', 'remove', 'create', 'list'].includes(operation)) {
|
||||||
console.log('Unknown operation.');
|
console.log('Unknown operation.');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user