feat(xo-server/db-cli): improve help message

This commit is contained in:
Julien Fontanet 2022-08-07 12:48:34 +02:00
parent e2dc1d98f1
commit a2a98c490f

View File

@ -103,11 +103,11 @@ xo-server-db --help, -h
Display this help message.
xo-server-logs ls
xo-server-db ls
List the available namespaces.
xo-server-logs ls <namespace> [<pattern>...]
xo-server-db ls <namespace> [<pattern>...]
List all entries in the given namespace.
@ -116,6 +116,14 @@ xo-server-logs ls <namespace> [<pattern>...]
Patterns have the following format \`<field>=<value>\`.
xo-server-logs repl
Open a REPL to interact directly with the database.
Available objects:
- redis: a raw node-redis instance connected to the database
- <namespace>: an xo-collection instance to the coresponding namespace in the database
`)
return
}