feat: add borderstyle option (#2445)
This commit is contained in:
1 parent
d85070f69d
commit
f1a1097db5
11 files changed
+184
-84
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user