fix: read prompt subcommand input from stdin

This commit is contained in:
bellman
2026-06-03 22:39:16 +09:00
parent c91a3062d5
commit 9522674c87
4 changed files with 189 additions and 6 deletions

View File

@@ -86,6 +86,12 @@ cd rust
./target/debug/claw prompt "summarize this repository"
```
Pipe prompt text through stdin when automation already produces the prompt body:
```bash
printf 'summarize this repository\n' | ./target/debug/claw prompt --output-format json
```
### Shorthand prompt mode
```bash