feat: add borderstyle option (#2445)

This commit is contained in:
CatsDeservePets authored and GitHub committed 2026-03-21 02:49:09 +01:00
1 parent d85070f69d
commit f1a1097db5
11 files changed
+184 -84

No files matched your search

+6 -3
View File
@@ -101,10 +101,13 @@ func exportFlags() {
// used by exportOpts below
func fieldToString(field reflect.Value) string {
kind := field.Kind()
var value string
// prevent returning <main.borderStyle Value>
if field.Type() == reflect.TypeFor[borderStyle]() {
return borderStyle(field.Uint()).String()
}
switch kind {
var value string
switch field.Kind() {
case reflect.Int:
value = strconv.Itoa(int(field.Int()))
case reflect.Bool: