diff --git a/console.html b/console.html index 549b15b..68006bc 100644 --- a/console.html +++ b/console.html @@ -314,6 +314,27 @@ return; } + // method(container_start) + if ([ + "container_start", + "container_stop", + "container_pause", + "container_unpause", + "container_restart", + "container_kill", + "container_remove" + ].indexOf(env.method) > -1) { + if (args.length < 1) { + this.echo("Please set a container name"); + return; + } + + jsonrpc2_request(this, env.method, { + "name": args[0] + }); + return; + } + // method(*) jsonrpc2_request(this, env.method, {}); } diff --git a/plugins b/plugins index ca49785..7af43af 160000 --- a/plugins +++ b/plugins @@ -1 +1 @@ -Subproject commit ca4978506b4ea0aaf8ae81fb93636818bad6017e +Subproject commit 7af43afa3fa35d1b65f2d3bc42b6b3f3438a3ed3