diff --git a/README.md b/README.md index 64a6e78..34fa437 100644 --- a/README.md +++ b/README.md @@ -49,8 +49,6 @@ heygpt read the code and tell me what it is doing: $(cat src/main.rs) heygpt read the code diff and write a commit message: $(git diff) ``` -You may need write prompt in multiple lines: - ```bash heygpt "please translate this poem to English: > 床前明月光, @@ -59,6 +57,21 @@ heygpt "please translate this poem to English: > 低头思故乡。" ``` +You may even compose `heygpt` with other CLI tools via pipes: + +``` +$ echo "It's late. I should go to bed" | heygpt | cowsay + ______________________________________ +/ Goodnight! Sleep well and have sweet \ +\ dreams. / + -------------------------------------- + \ ^__^ + \ (oo)\_______ + (__)\ )\/\ + ||----w | + || || +``` + ## Advanced ### Commands in interactive mode