Skip to content

Commit 9116973

Browse files
[inspect] Display sort-maps status
1 parent 46fa804 commit 9116973

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/orchard/inspect.clj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,7 +1109,7 @@
11091109
(unindent))
11101110
inspector)))
11111111

1112-
(defn render-view-mode [{:keys [value view-mode pretty-print only-diff] :as inspector}]
1112+
(defn render-view-mode [{:keys [value view-mode pretty-print sort-maps only-diff] :as inspector}]
11131113
(if (some? value)
11141114
(let [supported (filter #(view-mode-supported? inspector %) view-mode-order)
11151115
add-circle #(if %2 (str "" %1) %1)
@@ -1118,9 +1118,10 @@
11181118
(map #(add-circle (name %) (= % view-mode)))
11191119
(str/join " "))
11201120
" " (add-circle "pretty" pretty-print)
1121+
" " (add-circle "sort-maps" sort-maps)
11211122
(when diff?
11221123
(str " " (add-circle "only-diff" only-diff))))
1123-
caption (format "View mode (press 'v' to cycle, 'P' to pretty-print%s)"
1124+
caption (format "View mode (press 'v' to cycle, 'P' to pretty-print, 'S' to sort maps%s)"
11241125
(if diff? ", 'D' to show only diffs" ""))]
11251126
(-> (render-section-header inspector caption)
11261127
(indent)

0 commit comments

Comments
 (0)