mirror of https://github.com/vizality/vizality
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.
14 lines
317 B
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]);
|
|
}
|
|
};
|