liutaio 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docker/run.sh +3 -2
- package/package.json +1 -1
package/docker/run.sh
CHANGED
|
@@ -42,6 +42,7 @@ REPO_ROOT=""
|
|
|
42
42
|
EXTRA_ENVS=()
|
|
43
43
|
FORCE_OAUTH=false
|
|
44
44
|
FRESH_LOGIN=false
|
|
45
|
+
SHOW_HELP=false
|
|
45
46
|
|
|
46
47
|
while [[ $# -gt 0 ]]; do
|
|
47
48
|
case $1 in
|
|
@@ -50,7 +51,7 @@ while [[ $# -gt 0 ]]; do
|
|
|
50
51
|
--fresh-login) FRESH_LOGIN=true; FORCE_OAUTH=true; shift ;;
|
|
51
52
|
--rebuild) REBUILD=true; shift ;;
|
|
52
53
|
--dry-run) DRY_RUN=true; shift ;;
|
|
53
|
-
--help|-h) AGENTS_FILE=""; ITERATIONS=""; BASE_BRANCH=""; break ;;
|
|
54
|
+
--help|-h) AGENTS_FILE=""; ITERATIONS=""; BASE_BRANCH=""; SHOW_HELP=true; break ;;
|
|
54
55
|
--name) CONTAINER_NAME="$2"; shift 2 ;;
|
|
55
56
|
--node-version) NODE_VERSION="$2"; shift 2 ;;
|
|
56
57
|
--repo) REPO_ROOT="$2"; shift 2 ;;
|
|
@@ -99,7 +100,7 @@ if [ -z "$AGENTS_FILE" ] || [ -z "$ITERATIONS" ] || [ -z "$BASE_BRANCH" ]; then
|
|
|
99
100
|
echo " liutaio agent.md 10 my-branch # auto-detect auth"
|
|
100
101
|
echo " liutaio agent.md 10 my-branch --oauth # force OAuth login"
|
|
101
102
|
echo " liutaio agent.md 10 my-branch --fresh-login # re-authenticate"
|
|
102
|
-
exit 1
|
|
103
|
+
if $SHOW_HELP; then exit 0; else exit 1; fi
|
|
103
104
|
fi
|
|
104
105
|
|
|
105
106
|
# ─── Detect repo root ───────────────────────────────────────────────
|