Skip to content

Commit

Permalink
docs: improve readability of shell commands in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
leoshimo committed Dec 8, 2023
1 parent 6a903a1 commit 10732b3
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,16 +102,22 @@ An gallery of examples to get the inspiration flowing

```sh
# Creating Summary of Meeting Transcripts
$ cat meeting_saved_chat.txt | cogni -s "Extract the links mentioned in this transcript, and provide a high level summary of the discussion points"
$ cat meeting_saved_chat.txt \
| cogni -s "Extract the links mentioned in this transcript, and provide a high level summary of the discussion points"

# Narrate Weather Summary
$ curl -s "wttr.in/?1" | cogni -s "Summarize today's weather using the output. Respond in 1 short sentence." | say
$ curl -s "wttr.in/?1" \
| cogni -s "Summarize today's weather using the output. Respond in 1 short sentence." \
| say

# Create a ffmpeg cheatsheet from man page
$ man ffmpeg | cogni -T 300 -s "Create a cheatsheet given a man page. Output should be in Markdown, and should be a set of example usages under headings." > cheatsheet.md
$ man ffmpeg \
| cogni -T 300 -s "Create a cheatsheet given a man page. Output should be in Markdown, and should be a set of example usages under headings." \
> cheatsheet.md

# Catchup after long hiatus from git repo
$ git show -n 3 | cogni -s "What was I working on recently?"
$ git commit -m git show -n 3 \
| cogni -s "What was I working on recently?"
```

### In Emacs
Expand Down

0 comments on commit 10732b3

Please sign in to comment.