anvilspawn convenience: $PWD default workdir

This commit is contained in:
Levi Neely 2026-03-12 12:21:00 +01:00
parent 2a1d620a31
commit b4abe0b6d7
1 changed files with 5 additions and 1 deletions

View File

@ -4,7 +4,7 @@
set -e
if [ $# -ne 3 ]; then
if [ $# -lt 2 ]; then
echo "Usage: $0 <backend> <role> <workdir>"
echo " backend: claude, kiro-cli"
echo " role: developer, solo-developer, reviewer, tester, devops, researcher, taskmgr, author, technical-editor, ..."
@ -15,6 +15,10 @@ BACKEND="$1"
ROLE="$2"
WORKDIR="$3"
if [ -z $WORKDIR ]; then
WORKDIR="$PWD"
fi
NAMESPACE=$(namespace)
if [ -z "$NAMESPACE" ]; then
echo "Error: No namespace found. Is anvillm running?"