File tree Expand file tree Collapse file tree 14 files changed +58
-15
lines changed Expand file tree Collapse file tree 14 files changed +58
-15
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ otto [flags]
24
24
* [ otto cmd] ( otto_cmd.md ) - Have Otto suggest a command to run next
25
25
* [ otto commit] ( otto_commit.md ) - Generates a commit message from the git diff
26
26
* [ otto config] ( otto_config.md ) - Configures ottodocs
27
+ * [ otto count] ( otto_count.md ) - Count tokens in given context and prompt
27
28
* [ otto docs] ( otto_docs.md ) - Document a repository of files or a single file
28
29
* [ otto edit] ( otto_edit.md ) - Edit a file using AI
29
30
* [ otto issue] ( otto_issue.md ) - Get a prompt for or ask Otto about a GitHub Issue.
@@ -32,4 +33,4 @@ otto [flags]
32
33
* [ otto release] ( otto_release.md ) - Generate GitHub release notes from git commit logs
33
34
* [ otto version] ( otto_version.md ) - Prints version information.
34
35
35
- ###### Auto generated by spf13/cobra on 2 -May-2023
36
+ ###### Auto generated by spf13/cobra on 5 -May-2023
Original file line number Diff line number Diff line change @@ -31,4 +31,4 @@ otto ask [flags]
31
31
32
32
* [ otto] ( otto.md ) - Document your code with ease
33
33
34
- ###### Auto generated by spf13/cobra on 2 -May-2023
34
+ ###### Auto generated by spf13/cobra on 5 -May-2023
Original file line number Diff line number Diff line change @@ -14,8 +14,13 @@ otto chat [flags]
14
14
### Options
15
15
16
16
```
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
19
24
```
20
25
21
26
### Options inherited from parent commands
@@ -28,4 +33,4 @@ otto chat [flags]
28
33
29
34
* [ otto] ( otto.md ) - Document your code with ease
30
35
31
- ###### Auto generated by spf13/cobra on 2 -May-2023
36
+ ###### Auto generated by spf13/cobra on 5 -May-2023
Original file line number Diff line number Diff line change @@ -29,4 +29,4 @@ otto cmd [flags]
29
29
30
30
* [ otto] ( otto.md ) - Document your code with ease
31
31
32
- ###### Auto generated by spf13/cobra on 2 -May-2023
32
+ ###### Auto generated by spf13/cobra on 5 -May-2023
Original file line number Diff line number Diff line change @@ -31,4 +31,4 @@ otto commit [flags]
31
31
32
32
* [ otto] ( otto.md ) - Document your code with ease
33
33
34
- ###### Auto generated by spf13/cobra on 2 -May-2023
34
+ ###### Auto generated by spf13/cobra on 5 -May-2023
Original file line number Diff line number Diff line change @@ -41,4 +41,4 @@ otto config [flags]
41
41
42
42
* [ otto] ( otto.md ) - Document your code with ease
43
43
44
- ###### Auto generated by spf13/cobra on 2 -May-2023
44
+ ###### Auto generated by spf13/cobra on 5 -May-2023
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change @@ -39,4 +39,4 @@ otto docs [flags]
39
39
40
40
* [ otto] ( otto.md ) - Document your code with ease
41
41
42
- ###### Auto generated by spf13/cobra on 2 -May-2023
42
+ ###### Auto generated by spf13/cobra on 5 -May-2023
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ otto edit [flags]
23
23
-f, --force Force overwrite of existing files
24
24
-g, --goal string Goal of the edit
25
25
-h, --help help for edit
26
+ -r, --repo Use the current repo as context
26
27
-s, --start int Start line (default 1)
27
28
-v, --verbose Verbose output
28
29
```
@@ -37,4 +38,4 @@ otto edit [flags]
37
38
38
39
* [ otto] ( otto.md ) - Document your code with ease
39
40
40
- ###### Auto generated by spf13/cobra on 2 -May-2023
41
+ ###### Auto generated by spf13/cobra on 5 -May-2023
Original file line number Diff line number Diff line change @@ -33,4 +33,4 @@ otto issue [flags]
33
33
34
34
* [ otto] ( otto.md ) - Document your code with ease
35
35
36
- ###### Auto generated by spf13/cobra on 2 -May-2023
36
+ ###### Auto generated by spf13/cobra on 5 -May-2023
You can’t perform that action at this time.
0 commit comments