wtf. this should work

This commit is contained in:
Jeff Carr 2025-08-22 06:12:47 -05:00
parent d9e7420b31
commit fbc5ebe4ce
4 changed files with 12 additions and 2 deletions

View File

@ -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"`

4
doOutput.go Normal file
View File

@ -0,0 +1,4 @@
package main
func doOutput(s string) {
}

View File

@ -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 {

View File

@ -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))