Skip to content

Commit

Permalink
pipegpt -> pipe-gpt Corrected command name
Browse files Browse the repository at this point in the history
  • Loading branch information
craigmayhew committed Jan 29, 2024
1 parent 5d62cde commit 1cb537a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ Installation via cargo `cargo install pipe-gpt`, build it locally via `cargo bui

### Local command-line usage
- `tail -30 /var/httpd.log | pipe-gpt --p "Is there anything in the http log file I should fix?"`
- `cat main.rs | pipegpt -p "How would you improve this code? Include line numbers in your comments so I can tell where you mean."`
- `cat main.rs | pipegpt -p "Is this code production ready? If yes reply 'Yes'. If no, then explain why not. Be concise."`
- `cat file.json | pipegpt -p "Convert this JSON to YAML" > file.yaml`
- `cat french.txt | pipegpt -p "Translate this to English please."`
- `git diff --staged | pipegpt -p "Code review this code change"`
- `cat main.rs | pipe-gpt -p "How would you improve this code? Include line numbers in your comments so I can tell where you mean."`
- `cat main.rs | pipe-gpt -p "Is this code production ready? If yes reply 'Yes'. If no, then explain why not. Be concise."`
- `cat file.json | pipe-gpt -p "Convert this JSON to YAML" > file.yaml`
- `cat french.txt | pipe-gpt -p "Translate this to English please."`
- `git diff --staged | pipe-gpt -p "Code review this code change"`

### pipe-gpt for local dev

Expand Down
10 changes: 5 additions & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,23 @@
//! ```
//!
//! ```sh
//! cat main.rs | pipegpt -p "How would you improve this code? Include line numbers in your comments so I can tell where you mean."
//! cat main.rs | pipe-gpt -p "How would you improve this code? Include line numbers in your comments so I can tell where you mean."
//! ```
//!
//!```sh
//!cat main.rs | pipegpt -p "Is this code production ready? If yes reply 'Yes'. If no, then explain why not. Be concise."
//!cat main.rs | pipe-gpt -p "Is this code production ready? If yes reply 'Yes'. If no, then explain why not. Be concise."
//!```
//!
//! ```sh
//! cat file.json | pipegpt -p "Convert this JSON to YAML" > file.yaml
//! cat file.json | pipe-gpt -p "Convert this JSON to YAML" > file.yaml
//! ```
//!
//! ```sh
//! cat french.txt | pipegpt -p "Translate this to English please."
//! cat french.txt | pipe-gpt -p "Translate this to English please."
//! ```
//!
//! ```sh
//! git diff --staged | pipegpt -p "Code review this code change"
//! git diff --staged | pipe-gpt -p "Code review this code change"
//! ```
// atty to determine if data is piped in or not
Expand Down

0 comments on commit 1cb537a

Please sign in to comment.