diff options
| author | mo khan <mo@mokhan.ca> | 2025-07-31 16:09:12 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-07-31 16:09:12 -0600 |
| commit | 311603d0c0b04d451e9fb8e5e8335dca8425e2c4 (patch) | |
| tree | f38db8e10c4b55aef21c96c30fc71278c6e3d5c6 /bin | |
| parent | ebb003ef2beaeee61104d6b88a342c5c9fa73b51 (diff) | |
Connect to postgresql
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/postgres | 8 | ||||
| -rwxr-xr-x | bin/tool | 9 |
2 files changed, 17 insertions, 0 deletions
diff --git a/bin/postgres b/bin/postgres new file mode 100755 index 0000000..66c0ab0 --- /dev/null +++ b/bin/postgres @@ -0,0 +1,8 @@ +#!/bin/sh + +if ! command -v postgres >/dev/null 2>&1; then + echo "Install postgres via mise: mise install postgres" + exit 1 +fi + +exec postgres $@ diff --git a/bin/tool b/bin/tool new file mode 100755 index 0000000..7b46bce --- /dev/null +++ b/bin/tool @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +tool_bin=$(go tool -n "$1") + +shift + +exec "$tool_bin" "$@" |
