mirror of
https://gitlab.com/psuapp/psu.git
synced 2024-08-30 18:12:34 +00:00
Reduce help margin
This commit is contained in:
committed by
Tortue Torche
parent
31947b4702
commit
d3fe9898cf
66
psu
66
psu
@ -449,47 +449,47 @@ inputs() {
|
|||||||
ACTION="help"
|
ACTION="help"
|
||||||
echo "Portainer Stack Utils, version $VERSION
|
echo "Portainer Stack Utils, version $VERSION
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
psu <action> [options]
|
psu <action> [options]
|
||||||
|
|
||||||
Arguments:
|
Arguments:
|
||||||
action The name of the action to execute (possible values: '${ACTIONS// /\', \'}')
|
action The name of the action to execute (possible values: '${ACTIONS// /\', \'}')
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
-u, --user=USERNAME Username
|
-u, --user=USERNAME Username
|
||||||
-p, --password=PASSWORD Password
|
-p, --password=PASSWORD Password
|
||||||
-l, --url=URL URL to Portainer
|
-l, --url=URL URL to Portainer
|
||||||
-n, --name=STACK_NAME Stack name
|
-n, --name=STACK_NAME Stack name
|
||||||
-c, --compose-file=[FILE_PATH] Path to docker-compose file (required if action=deploy)
|
-c, --compose-file=[FILE_PATH] Path to docker-compose file (required if action=deploy)
|
||||||
-g, --env-file Path to file with environment variables to be used by the stack (only used when action=deploy or action=update)
|
-g, --env-file Path to file with environment variables to be used by the stack (only used when action=deploy or action=update)
|
||||||
-e, --endpoint=[ENDPOINT_ID] Which Docker endpoint to use. Defaults to 1
|
-e, --endpoint=[ENDPOINT_ID] Which Docker endpoint to use. Defaults to 1
|
||||||
-r, --prune Whether to prune unused containers or not. Defaults to false
|
-r, --prune Whether to prune unused containers or not. Defaults to false
|
||||||
-T, --timeout=[NUMBER_SECONDS] Status timeout, number of seconds before thrown an error (only used when action=status). Defaults to 100
|
-T, --timeout=[NUMBER_SECONDS] Status timeout, number of seconds before thrown an error (only used when action=status). Defaults to 100
|
||||||
-j, --detect-job=[true|false] Auto detect services who are jobs. Defaults to true
|
-j, --detect-job=[true|false] Auto detect services who are jobs in the current stack. Defaults to true
|
||||||
-S, --service[=SERVICE_NAME] Service name
|
-S, --service[=SERVICE_NAME] Filtering by a service name of the current stack
|
||||||
-i, --insecure Skip the host's SSL certificate verification. Defaults to false
|
-i, --insecure Skip the host's SSL certificate verification. Defaults to false
|
||||||
-v, --verbose Increase the verbosity of messages. Defaults to false
|
-v, --verbose Increase the verbosity of messages. Defaults to false
|
||||||
-d, --debug Print as much information as possible to help diagnosing a malfunction. Defaults to false
|
-d, --debug Print as much information as possible to help diagnosing a malfunction. Defaults to false
|
||||||
-q, --quiet Display the minimum of information or nothing, UNIX/Linux friendly. Defaults to false
|
-q, --quiet Display the minimum of information or nothing, UNIX/Linux friendly. Defaults to false
|
||||||
-t, --strict Never updates an existent stack nor removes an unexistent one, and instead exits with an error. Defaults to false
|
-t, --strict Never updates an existent stack nor removes an inexistent one, and instead exits with an error. Defaults to false
|
||||||
-h, --help Display this help message
|
-h, --help Display this help message
|
||||||
-V, --version Display the version of this programm
|
-V, --version Display the version of this program
|
||||||
-s, --secure[=yes|no] DEPRECATED: Use the --insecure option instead. Enable or disable the host's SSL certificate verification. Defaults to 'yes'
|
-s, --secure[=yes|no] DEPRECATED: Use the --insecure option instead. Enable or disable the host's SSL certificate verification. Defaults to 'yes'
|
||||||
-a, --action=[ACTION_NAME] DEPRECATED: Use <action> argument instead. The name of the action to execute
|
-a, --action=[ACTION_NAME] DEPRECATED: Use <action> argument instead. The name of the action to execute
|
||||||
|
|
||||||
Help:
|
Help:
|
||||||
You can deploy/update/undeploy/list... stacks in a Portainer instance easily with this tool!"
|
You can deploy/update/undeploy/list... stacks in a Portainer instance easily with this tool!"
|
||||||
else
|
else
|
||||||
if [ "$ACTION" == "list" ]; then
|
if [ "$ACTION" == "list" ]; then
|
||||||
echo "Usage:
|
echo "Usage:
|
||||||
psu $ACTION [options]
|
psu $ACTION [options]
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
-q, --quiet Display only the stack names who are deployed
|
-q, --quiet Display only the stack names who are deployed
|
||||||
-h, --help Display this help message
|
-h, --help Display this help message
|
||||||
|
|
||||||
Help:
|
Help:
|
||||||
Returns a list of the stacks already deployed"
|
Returns a list of the stacks already deployed"
|
||||||
ACTION="help"
|
ACTION="help"
|
||||||
else
|
else
|
||||||
input_error "Error: no help is available for the '$ACTION' action, run the 'psu help' command for global help"
|
input_error "Error: no help is available for the '$ACTION' action, run the 'psu help' command for global help"
|
||||||
|
Reference in New Issue
Block a user