Skip to content

Commit

Permalink
update readme accordingly
Browse files Browse the repository at this point in the history
  • Loading branch information
fuyufjh committed Jul 23, 2023
1 parent 1d7226c commit 56e6bce
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
> 床前明月光,
Expand All @@ -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
Expand Down

0 comments on commit 56e6bce

Please sign in to comment.