summaryrefslogtreecommitdiff
path: root/argv.go
diff options
context:
space:
mode:
authorCastor Gemini <[email protected]>2025-08-22 11:47:00 -0500
committerJeff Carr <[email protected]>2025-08-22 11:47:00 -0500
commit40243de35b208238e58441d7a9f6973caafaf0d9 (patch)
treef56c2df2b6918e558e9a19378304529749edd11a /argv.go
parent7646310dd46cfa0dc436574d6699563ca5136bf0 (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.go19
1 files changed, 10 insertions, 9 deletions
diff --git a/argv.go b/argv.go
index b298ecd..cfba175 100644
--- a/argv.go
+++ b/argv.go
@@ -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 {