First stab at new help
This commit is contained in:
parent
66dcaedfd0
commit
f15dfd9f5f
30
abra
30
abra
@ -155,22 +155,24 @@ fi
|
|||||||
###### Global help
|
###### Global help
|
||||||
|
|
||||||
sub_help() {
|
sub_help() {
|
||||||
echo "Usage: $PROGRAM_NAME [-a STACK_NAME] [-c CONFIG] [-e ENV_FILE] <subcommand> [options]"
|
echo "Usage: $PROGRAM_NAME [OPTIONS] COMMAND [ARGS]..."
|
||||||
echo ""
|
echo ""
|
||||||
echo "Subcommands:"
|
echo "Options:"
|
||||||
echo " context [--help] [SUBCOMMAND] manage remote swarm contexts"
|
echo " --config Stack configuration to use"
|
||||||
echo " cp SRC_PATH SERVICE:DEST_PATH copy files to a container"
|
echo " --env Environment variables to load"
|
||||||
echo " deploy let 'em rip"
|
echo " --help Show this message and exit"
|
||||||
echo " logs SERVICE [ARGS] tail logs from a deployed service"
|
echo " --stack Name of the target stack"
|
||||||
echo " multilogs tail logs from a whole stackk"
|
echo " --version Show program version"
|
||||||
echo " run [-u USER] SERVICE CMD run a command in the specified service's container"
|
|
||||||
echo " secret [--help] [SUBCOMMAND] manage secrets"
|
|
||||||
echo " upgrade upgrade to the latest version"
|
|
||||||
echo " ... (custom commands)"
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Make sure \$STACK_NAME is set using direnv, -a, -e or -c"
|
echo "Commands:"
|
||||||
echo ""
|
echo " context manage remote swarm contexts"
|
||||||
echo "Runs compose.yml by default, set e.g. COMPOSE_FILE=\"compose.yml:compose2.yml\" to override"
|
echo " cp copy files to a container"
|
||||||
|
echo " deploy let 'em rip"
|
||||||
|
echo " logs tail logs from a deployed service"
|
||||||
|
echo " multilogs tail logs from a whole stackk"
|
||||||
|
echo " run run a command in the specified service's container"
|
||||||
|
echo " secret manage secrets"
|
||||||
|
echo " upgrade upgrade to the latest version"
|
||||||
}
|
}
|
||||||
|
|
||||||
###### Subcommand `secret`
|
###### Subcommand `secret`
|
||||||
|
Reference in New Issue
Block a user