wtf. this should work
This commit is contained in:
parent
d9e7420b31
commit
fbc5ebe4ce
1
argv.go
1
argv.go
|
@ -13,6 +13,7 @@ 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"`
|
||||
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"`
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
package main
|
||||
|
||||
func doOutput(s string) {
|
||||
}
|
5
main.go
5
main.go
|
@ -53,6 +53,11 @@ func main() {
|
|||
me.chats.ConfigSave()
|
||||
}
|
||||
|
||||
if argv.Output != "" {
|
||||
doOutput(argv.Output)
|
||||
okExit("")
|
||||
}
|
||||
|
||||
if argv.Add != "" {
|
||||
newChats, err := addFile(argv.Add)
|
||||
if err != nil {
|
||||
|
|
|
@ -95,7 +95,7 @@ func printLeftAligned(author, timestamp, content string) {
|
|||
|
||||
func printRightAligned(author, timestamp, content string) {
|
||||
prefix := fmt.Sprintf("(%s) %s ✦", timestamp, author)
|
||||
|
||||
|
||||
// Print the prefix first, right-aligned.
|
||||
fmt.Printf("%*s\n", termWidth, prefix)
|
||||
|
||||
|
@ -143,7 +143,7 @@ func printCodeSnippet(snippet *chatpb.CodeSnippet) {
|
|||
language := filepath.Base(snippet.GetFilename()) // Still useful for display
|
||||
|
||||
fmt.Println() // Add extra line feed for spacing
|
||||
|
||||
|
||||
// --- Top Border ---
|
||||
topBorder := fmt.Sprintf("┌─[ Code Snippet: %s ]", language)
|
||||
fmt.Printf("%s%s┐\n", topBorder, strings.Repeat("─", termWidth-len(topBorder)-1))
|
||||
|
|
Loading…
Reference in New Issue