From 2a7ccd83a916c8a4e9a18bb0bddacaa481304abf Mon Sep 17 00:00:00 2001 From: Robin de Rooij Date: Wed, 23 Nov 2022 18:41:18 +0100 Subject: [PATCH 1/2] Add terminusdb binary alias for terminusdb-container cli Makes it easier to follow tutorials and how-to guides --- terminusdb | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 terminusdb diff --git a/terminusdb b/terminusdb new file mode 100755 index 0000000..7e57d4a --- /dev/null +++ b/terminusdb @@ -0,0 +1,4 @@ +#!/bin/bash + +SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) +$SCRIPT_DIR/terminusdb-container cli "${@:1}" From e256b5d6fdd211a280696220a192c4643858e805 Mon Sep 17 00:00:00 2001 From: Robin de Rooij Date: Thu, 24 Nov 2022 15:50:31 +0100 Subject: [PATCH 2/2] Clarify error message when server is not running --- terminusdb-container | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terminusdb-container b/terminusdb-container index 6a11483..8e84ed5 100755 --- a/terminusdb-container +++ b/terminusdb-container @@ -265,7 +265,7 @@ if [[ -n "$1" ]]; then # shellcheck disable=SC2124 TERMINUSDB_RUN_CMD="${@:2}" fi - _cli || printf "\nError on executing the CLI command, did you forget to run the container first with the run command?" + _cli || printf "\nError on executing the CLI command, did you forget to run the container first with the run command? Run: ./terminusdb-container run" ;; "stop") _check_if_docker_is_in_path