You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
vizality/renderer/src/builtins/addon-manager/commands/install.js

14 lines
317 B

import { toPlural } from '@vizality/util/string';
export default {
command: 'install',
description: 'Installs an addon.',
options: [
{ name: 'url', required: true },
{ name: 'id', required: true }
],
async executor (args, type) {
await vizality.manager[toPlural(type)].install(args[0]);
}
};