it should be plugin install not update
This commit is contained in:
parent
8ff1a795d1
commit
b3fad9b945
@ -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": {
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user