-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: expose response word wrapping length configuration
- Loading branch information
Showing
6 changed files
with
29 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,19 @@ | ||
package chat | ||
|
||
import "github.com/reugn/gemini-cli/internal/handler" | ||
|
||
// Opts represents the Chat configuration options. | ||
type Opts struct { | ||
GenerativeModel string | ||
Style string | ||
Multiline bool | ||
LineTerminator string | ||
StylePath string | ||
WordWrap int | ||
} | ||
|
||
func (o *Opts) rendererOptions() handler.RendererOptions { | ||
return handler.RendererOptions{ | ||
StylePath: o.StylePath, | ||
WordWrap: o.WordWrap, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package handler | ||
|
||
// RendererOptions represents configuration options for the terminal renderer. | ||
type RendererOptions struct { | ||
StylePath string | ||
WordWrap int | ||
} |