mirror of
https://github.com/instructkr/claw-code.git
synced 2026-11-19 00:00:00 +08:00
fix: read prompt subcommand input from stdin
This commit is contained in:
1 parent
c91a3062d5
commit
9522674c87
4 files changed
+189
-6
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user