Skip to content

Commit 8ecd9cc

Browse files
committed
Add otto count command and update chat command options
1 parent 40e4cdc commit 8ecd9cc

14 files changed

+58
-15
lines changed

docs/otto.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ otto [flags]
2424
* [otto cmd](otto_cmd.md) - Have Otto suggest a command to run next
2525
* [otto commit](otto_commit.md) - Generates a commit message from the git diff
2626
* [otto config](otto_config.md) - Configures ottodocs
27+
* [otto count](otto_count.md) - Count tokens in given context and prompt
2728
* [otto docs](otto_docs.md) - Document a repository of files or a single file
2829
* [otto edit](otto_edit.md) - Edit a file using AI
2930
* [otto issue](otto_issue.md) - Get a prompt for or ask Otto about a GitHub Issue.
@@ -32,4 +33,4 @@ otto [flags]
3233
* [otto release](otto_release.md) - Generate GitHub release notes from git commit logs
3334
* [otto version](otto_version.md) - Prints version information.
3435

35-
###### Auto generated by spf13/cobra on 2-May-2023
36+
###### Auto generated by spf13/cobra on 5-May-2023

docs/otto_ask.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ otto ask [flags]
3131

3232
* [otto](otto.md) - Document your code with ease
3333

34-
###### Auto generated by spf13/cobra on 2-May-2023
34+
###### Auto generated by spf13/cobra on 5-May-2023

docs/otto_chat.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,13 @@ otto chat [flags]
1414
### Options
1515

1616
```
17-
-h, --help help for chat
18-
-v, --verbose Verbose output
17+
--clear Clear chat history
18+
-d, --delete string Delete chat history from file. Can either be a file path or an index of the chat history
19+
-h, --help help for chat
20+
-H, --history Display chat history
21+
-l, --load string Load chat history from file. Can either be a file path or an index of the chat history
22+
-r, --read Read the history file and exit
23+
-v, --verbose Verbose output
1924
```
2025

2126
### Options inherited from parent commands
@@ -28,4 +33,4 @@ otto chat [flags]
2833

2934
* [otto](otto.md) - Document your code with ease
3035

31-
###### Auto generated by spf13/cobra on 2-May-2023
36+
###### Auto generated by spf13/cobra on 5-May-2023

docs/otto_cmd.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ otto cmd [flags]
2929

3030
* [otto](otto.md) - Document your code with ease
3131

32-
###### Auto generated by spf13/cobra on 2-May-2023
32+
###### Auto generated by spf13/cobra on 5-May-2023

docs/otto_commit.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ otto commit [flags]
3131

3232
* [otto](otto.md) - Document your code with ease
3333

34-
###### Auto generated by spf13/cobra on 2-May-2023
34+
###### Auto generated by spf13/cobra on 5-May-2023

docs/otto_config.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ otto config [flags]
4141

4242
* [otto](otto.md) - Document your code with ease
4343

44-
###### Auto generated by spf13/cobra on 2-May-2023
44+
###### Auto generated by spf13/cobra on 5-May-2023

docs/otto_count.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
## otto count
2+
3+
Count tokens in given context and prompt
4+
5+
### Synopsis
6+
7+
This command calculates the token count of the given context and prompt.
8+
It takes the context and prompt files as input.
9+
10+
Example usage:
11+
12+
otto count -c contextfile.txt -g "prompt"
13+
14+
```
15+
otto count [flags]
16+
```
17+
18+
### Options
19+
20+
```
21+
-c, --context strings Context files
22+
-g, --goal string Prompt for token count
23+
-h, --help help for count
24+
```
25+
26+
### Options inherited from parent commands
27+
28+
```
29+
-V, --version print version
30+
```
31+
32+
### SEE ALSO
33+
34+
* [otto](otto.md) - Document your code with ease
35+
36+
###### Auto generated by spf13/cobra on 5-May-2023

docs/otto_docs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ otto docs [flags]
3939

4040
* [otto](otto.md) - Document your code with ease
4141

42-
###### Auto generated by spf13/cobra on 2-May-2023
42+
###### Auto generated by spf13/cobra on 5-May-2023

docs/otto_edit.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ otto edit [flags]
2323
-f, --force Force overwrite of existing files
2424
-g, --goal string Goal of the edit
2525
-h, --help help for edit
26+
-r, --repo Use the current repo as context
2627
-s, --start int Start line (default 1)
2728
-v, --verbose Verbose output
2829
```
@@ -37,4 +38,4 @@ otto edit [flags]
3738

3839
* [otto](otto.md) - Document your code with ease
3940

40-
###### Auto generated by spf13/cobra on 2-May-2023
41+
###### Auto generated by spf13/cobra on 5-May-2023

docs/otto_issue.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ otto issue [flags]
3333

3434
* [otto](otto.md) - Document your code with ease
3535

36-
###### Auto generated by spf13/cobra on 2-May-2023
36+
###### Auto generated by spf13/cobra on 5-May-2023

0 commit comments

Comments
 (0)