Skip to content

Commit 1d9739a

Browse files
committed
Fix completion when no docstring is present
1 parent d848eb6 commit 1d9739a

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
# Unreleased
22

3-
## Added
4-
53
## Fixed
64

7-
## Changed
5+
- Fix completion when no docstring is present
86

97
# 1.25.107 (2025-10-16 / 678a49c)
108

src/lambdaisland/cli/completions.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
cmdspec
2121
(butlast (next argv)))]
2222
(doseq [[cmd {:keys [doc]}] (cmdspec/prepare-cmdpairs (:commands cmdspec))]
23-
(println (str cmd (when doc ":") (first (str/split doc #"\R")))))
23+
(println (str cmd (when doc (str ":" (first (str/split doc #"\R")))))))
2424
(doseq [[flag {:keys [doc]}] (:flagmap cmdspec)]
2525
(println (str flag ":" (or doc (str/replace flag #"^-+" "")))))))
2626

0 commit comments

Comments
 (0)