Skip to content

Commit 28f5a44

Browse files
committed
Move box formatting constants to the top of render.go for better visibility and organization
1 parent b083161 commit 28f5a44

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

cmd/generate/render.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ import (
88
"github.com/github/gh-models/pkg/prompt"
99
)
1010

11+
var BOX_START = "╭─"
12+
var BOX_END = "╰─"
13+
var BOX_LINE = "─"
14+
1115
// RenderMessagesToString converts a slice of Messages to a human-readable string representation
1216
func RenderMessagesToString(messages []prompt.Message) string {
1317
if len(messages) == 0 {
@@ -40,10 +44,6 @@ func RenderMessagesToString(messages []prompt.Message) string {
4044
return builder.String()
4145
}
4246

43-
var BOX_START = "╭─"
44-
var BOX_END = "╰─"
45-
var BOX_LINE = "─"
46-
4747
func (h *generateCommandHandler) WriteStartBox(title string) {
4848
h.cfg.WriteToOut(fmt.Sprintf("%s %s\n", BOX_START, title))
4949
}

0 commit comments

Comments
 (0)