Update documentation for database related options.

This commit is contained in:
Kevin Baensch 2023-01-18 17:26:35 +01:00
parent 90702ac55e
commit f783ef46b6
2 changed files with 38 additions and 8 deletions

View file

@ -4,14 +4,18 @@ SQL_PROXY_HOST="${SQL_PROXY_HOST:-localhost}"
SSH_SQL_PROXY_HOST="sqlproxy.${SQL_PROXY_HOST}"
CONNECTION_CACHE="$HOME/.cache/sqlproxy_${SQL_PROXY_HOST}"
HELP="Usage: myssh [ls|connect]\n
SUBCOMMANDS:\n
ls: list available database hosts\n
connect: connect to a database host\n
disconnect: Quit existing ssh master session\n
\n
SYNTAX connect host [-u user] [-p password] [-c client]
"
HELP="Usage: myssh [ ls | connect | disconnect ]
SUBCOMMAND LIST:
ls: list available database hosts
connect: connect to a database host
disconnect: Quit existing ssh master session
[ connect ]
SYNTAX connect host [-u user] [-p password] [-d dbname] [-c]
-u\tSets/Overrides the database user login name
-p\tSets/Overrides the database user login password
-d\tSets/Overrides the target database name
-c\tRun SQL on CLI instead of GUI"
# Detect Pipe
if ! [ -t 1 ]