We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a58eab commit 0c5812aCopy full SHA for 0c5812a
1 file changed
internal/commands/root.go
@@ -897,11 +897,20 @@ func humanizeFieldName(name string) string {
897
parts[i] = "ID"
898
continue
899
}
900
- parts[i] = strings.Title(part)
+ parts[i] = titleWord(part)
901
902
return strings.Join(parts, " ")
903
904
905
+func titleWord(s string) string {
906
+ if s == "" {
907
+ return s
908
+ }
909
+ runes := []rune(strings.ToLower(s))
910
+ runes[0] = []rune(strings.ToUpper(string(runes[0])))[0]
911
+ return string(runes)
912
+}
913
+
914
// toMaps converts any (expected []any of map[string]any) to []map[string]any.
915
// Falls back to JSON round-trip for typed slices (e.g., []Attachment).
916
func toMaps(data any) []map[string]any {
0 commit comments