10 lines
559 B
Bash
10 lines
559 B
Bash
#!/bin/sh
|
|
# Run on ces-control. JSON content travels through stdin, never shell arguments.
|
|
set -eu
|
|
cd /opt/endorphin-tabularium-docs/current
|
|
case "${1:-}" in
|
|
list|get|save|history|export|backup|import)
|
|
docker compose -p endorphin-tabularium-docs --env-file /etc/endorphin-tabularium-docs/production.env --env-file release.env -f compose.yml exec -T docs node apps/docs/docs-cli.cjs "$@" ;;
|
|
*) echo 'Usage: docs list | get <slug> | save < JSON | history <sourceSlug> | export <private-file> | backup <private-file> | import < JSON' >&2; exit 1 ;;
|
|
esac
|