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]);
  }
};
