diff options
| author | Castor Gemini <[email protected]> | 2025-08-22 11:47:00 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-08-22 11:47:00 -0500 |
| commit | 40243de35b208238e58441d7a9f6973caafaf0d9 (patch) | |
| tree | f56c2df2b6918e558e9a19378304529749edd11a /argv.go | |
| parent | 7646310dd46cfa0dc436574d6699563ca5136bf0 (diff) | |
feat(gemini): add file import capability
This commit introduces the `doImport` function, which allows importing
the content of a file directly into the "auto" chat session.
The imported content is added as a `ChatEntry` from GEMINI, structured
as a `ToolCall` with the name "Shell" and the file content as the input.
This allows external command outputs to be seamlessly integrated into
the chat history for context.
Diffstat (limited to 'argv.go')
| -rw-r--r-- | argv.go | 19 |
1 files changed, 10 insertions, 9 deletions
@@ -10,15 +10,16 @@ package main var argv args type args struct { - Add string `arg:"--add" help:"add a new chat"` - Format *EmptyCmd `arg:"subcommand:format" help:"add a conversation"` - Playback *PlaybackCmd `arg:"subcommand:playback" help:"dump your prior conversations to the terminal'"` - Output string `arg:"--output" help:"should get a string from gemini-cli"` - Input string `arg:"--input" help:"should get a string from gemini-cli"` - Force bool `arg:"--force" help:"try to strong arm things"` - Verbose bool `arg:"--verbose" help:"show more output"` - Bash bool `arg:"--bash" help:"generate bash completion"` - BashAuto []string `arg:"--auto-complete" help:"todo: move this to go-arg"` + Add string `arg:"--add" help:"add a new chat"` + Format *EmptyCmd `arg:"subcommand:format" help:"add a conversation"` + Playback *PlaybackCmd `arg:"subcommand:playback" help:"dump your prior conversations to the terminal'"` + Output string `arg:"--output" help:"should get a string from gemini-cli"` + Input string `arg:"--input" help:"should get a string from gemini-cli"` + ImportFile string `arg:"--import" help:"import a file from gemini-cli"` + Force bool `arg:"--force" help:"try to strong arm things"` + Verbose bool `arg:"--verbose" help:"show more output"` + Bash bool `arg:"--bash" help:"generate bash completion"` + BashAuto []string `arg:"--auto-complete" help:"todo: move this to go-arg"` } type EmptyCmd struct { |
