Skip to content

Commit 80008eb

Browse files
committed
Doc improvements
1 parent efd8ea2 commit 80008eb

File tree

3 files changed

+19
-11
lines changed

3 files changed

+19
-11
lines changed

README.md

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,16 @@ Read more about the setup command [here](docs/setup.md).
3333
You can chat with ChatGPT with:
3434

3535
```
36+
// Basic single command
3637
clai chat "Tell me a funny joke"
38+
39+
// Use a preconfigured persona
40+
clai chat "Count to 10" --persona ruby
3741
```
3842

3943
This will send the given prompt to the API and display the generated completion.
4044

41-
### Help
42-
43-
To view the available commands and options, you can use the `help` command:
44-
45-
```
46-
clai help
47-
```
48-
49-
This will display a list of supported commands and their descriptions.
45+
Read more about the chat command [here](docs/chat.md).
5046

5147
### Starting a session
5248

@@ -59,6 +55,18 @@ Your prompt: <Enter your prompt here><Enter>
5955

6056
This will start a REPL like process to interact with the OpenAI api.
6157

58+
Read more about the session command [here](docs/session.md).
59+
60+
### Help
61+
62+
To view the available commands and options, you can use the `help` command:
63+
64+
```
65+
clai help
66+
```
67+
68+
This will display a list of supported commands and their descriptions.
69+
6270
## Examples
6371

6472
Here are a few examples to get you started:

docs/intro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ It's very basic at the moment. I'm currently trying to incorporate clai in my da
55

66
`clai` currently supports OpenAI and needs a paid API key to work.
77

8-
My main use case currently is to have a terminal opened with a clai session and ask questions instead of googling.
8+
My main use case currently is to have a terminal permanently opened with a clai session and ask questions instead of googling.
99

1010
0.x.0 will be unstable and untested, I'm currently aiming to release a tested 1.0.0 soon. Please see [here](https://github.com/codergeek121/clai/CONTRIBUTING.MD) on how to contribute at the current stage of the project.

docs/setup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
`clai setup` will create a config file with a base configuration.
44

5-
`clai setup --force` will overwrite the basic config with the default configuration. It's mainly useful in development of the gem.
5+
`clai setup --force` will overwrite the basic config with the default configuration. It's mainly useful for development of clai.

0 commit comments

Comments
 (0)