|
@@ -217,9 +217,13 @@ echo "---"
|
|
|
# Call claude with the prompt in non-interactive mode
|
|
# Call claude with the prompt in non-interactive mode
|
|
|
# -p / --print: Non-interactive mode, prints output and exits
|
|
# -p / --print: Non-interactive mode, prints output and exits
|
|
|
# --output-format json: Get structured JSON output for programmatic parsing
|
|
# --output-format json: Get structured JSON output for programmatic parsing
|
|
|
|
|
+# --allowedTools: Enable specific tools (MCP Gogs server and file tools)
|
|
|
# --dangerously-skip-permissions: Skip all permission prompts (safe in controlled environment)
|
|
# --dangerously-skip-permissions: Skip all permission prompts (safe in controlled environment)
|
|
|
# This allows Claude to run unattended without waiting for user input
|
|
# This allows Claude to run unattended without waiting for user input
|
|
|
-OUTPUT=$(claude -p "$PROMPT" --output-format json --dangerously-skip-permissions 2>&1)
|
|
|
|
|
|
|
+OUTPUT=$(claude -p "$PROMPT" \
|
|
|
|
|
+ --output-format json \
|
|
|
|
|
+ --allowedTools "mcp__gogs,Read,Write,Edit,Bash,Grep,Glob,TodoWrite" \
|
|
|
|
|
+ --dangerously-skip-permissions 2>&1)
|
|
|
EXIT_CODE=$?
|
|
EXIT_CODE=$?
|
|
|
|
|
|
|
|
echo "---"
|
|
echo "---"
|