it should be plugin install not update

This commit is contained in:
Evert Prants 2021-02-13 14:42:32 +02:00
parent 8ff1a795d1
commit b3fad9b945
Signed by: evert
GPG Key ID: 1688DA83D222D0B5
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@squeebot/cli", "name": "@squeebot/cli",
"version": "3.1.0", "version": "3.1.0-1",
"description": "Squeebot v3 runtime, environments and configuration", "description": "Squeebot v3 runtime, environments and configuration",
"main": "dist/squeebot.js", "main": "dist/squeebot.js",
"bin": { "bin": {

View File

@ -111,9 +111,9 @@ export class SqueebotCLI {
]), ]),
// Plugin management // Plugin management
cmd('plugin', async (...args: string[]): Promise<void> => { cmd('plugin', async (...args: string[]): Promise<void> => {
logger.log('Usage: plugin install | update | remove | enable | disable | load | restart | kill | list | running [<name>]'); logger.log('Usage: plugin install | remove | enable | disable | load | restart | kill | list | running [<name>]');
}, [ }, [
cmd('update', async (...args: string[]): Promise<void> => { cmd('install', async (...args: string[]): Promise<void> => {
for (const name of args) { for (const name of args) {
const mf = await this.bot.repositoryManager.installPlugin(name); const mf = await this.bot.repositoryManager.installPlugin(name);
logger.log('Installed plugin %s version %s!', mf.name, mf.version); logger.log('Installed plugin %s version %s!', mf.name, mf.version);