Fix help output for enter command
This commit is contained in:
@@ -21,7 +21,7 @@ mysql:clone <name> <new-name> Create container <new-name> then copy data from <
|
|||||||
mysql:connect <name> Connect via mysql to a mysql service
|
mysql:connect <name> Connect via mysql to a mysql service
|
||||||
mysql:create <name> Create a mysql service with environment variables
|
mysql:create <name> Create a mysql service with environment variables
|
||||||
mysql:destroy <name> Delete the service and stop its container if there are no links left
|
mysql:destroy <name> Delete the service and stop its container if there are no links left
|
||||||
mysql:enter <name> [command] Enter a running couchdb service or run a command
|
mysql:enter <name> [command] Enter or run a command in a running mysql service container
|
||||||
mysql:export <name> > <file> Export a dump of the mysql service database
|
mysql:export <name> > <file> Export a dump of the mysql service database
|
||||||
mysql:expose <name> [port] Expose a mysql service on custom port if provided (random port otherwise)
|
mysql:expose <name> [port] Expose a mysql service on custom port if provided (random port otherwise)
|
||||||
mysql:import <name> < <file> Import a dump into the mysql service database
|
mysql:import <name> < <file> Import a dump into the mysql service database
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ source "$PLUGIN_BASE_PATH/common/functions"
|
|||||||
source "$(dirname "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)")/functions"
|
source "$(dirname "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)")/functions"
|
||||||
|
|
||||||
enter-cmd() {
|
enter-cmd() {
|
||||||
declare desc="enter a running $PLUGIN_SERVICE service or run a command"
|
declare desc="enter or run a command in a running $PLUGIN_SERVICE service container"
|
||||||
local cmd="$PLUGIN_COMMAND_PREFIX:enter" argv=("$@"); [[ ${argv[0]} == "$cmd" ]] && shift 1
|
local cmd="$PLUGIN_COMMAND_PREFIX:enter" argv=("$@"); [[ ${argv[0]} == "$cmd" ]] && shift 1
|
||||||
declare SERVICE="$1" && shift 1
|
declare SERVICE="$1" && shift 1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user