core: allow hydrooj addon list

This commit is contained in:
undefined committed 2022-05-30 16:12:21 +08:00
1 parent 7a784f1074
commit 9477692abb
1 file changed
+1 -1
+1 -1
View File
@@ -88,7 +88,7 @@ if (!argv.args[0] || argv.args[0] === 'cli') {
console.log('Successfully restored.');
});
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.');
return;
}