f3cd56b78e
Use ~/.pouch, the pouch CLI, and .pouch.yaml as the SSOT container. Keep the inner skills/ packages, and store ACK project state in .pouch/ack instead of docs/ack.
15 lines
456 B
Bash
Executable File
15 lines
456 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
# 跟随软链,确保从 ~/.local/bin/pouch 调用时仍能找到仓库根目录
|
|
SCRIPT="${BASH_SOURCE[0]}"
|
|
while [ -L "$SCRIPT" ]; do
|
|
link_dir="$(cd "$(dirname "$SCRIPT")" && pwd)"
|
|
SCRIPT="$(readlink "$SCRIPT")"
|
|
[[ "$SCRIPT" != /* ]] && SCRIPT="$link_dir/$SCRIPT"
|
|
done
|
|
REPO_ROOT="$(cd "$(dirname "$SCRIPT")/.." && pwd)"
|
|
|
|
export PYTHONPATH="${REPO_ROOT}${PYTHONPATH:+:$PYTHONPATH}"
|
|
exec python3 -m pouch "$@"
|