anvilspawn convenience: $PWD default workdir
This commit is contained in:
parent
2a1d620a31
commit
b4abe0b6d7
|
|
@ -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?"
|
||||
|
|
|
|||
Reference in New Issue