Skip to content

Commit

Permalink
Add unstable flag to transient
Browse files Browse the repository at this point in the history
  • Loading branch information
johnhamelink committed Jun 4, 2023
1 parent 141daaa commit d23b95f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions justl.el
Original file line number Diff line number Diff line change
Expand Up @@ -479,9 +479,12 @@ and output of process."

(defun justl--get-recipies-with-desc (justfile)
"Return all the recipies in JUSTFILE with description."
(let* ((recipe-status (justl--exec-to-string-with-exit-code
(format "%s --justfile=%s --list --unsorted"
justl-executable justfile)))
(let* ((t-args (transient-args 'justl-help-popup))
(recipe-status (justl--exec-to-string-with-exit-code
(format "%s %s --justfile=%s --list --unsorted"
justl-executable
(string-join t-args " ")
justfile)))
(justl-status (nth 0 recipe-status))
(recipe-lines (split-string
(nth 1 recipe-status)
Expand Down Expand Up @@ -622,6 +625,7 @@ tweaked further by the user."
("-n" "Disable Highlight" "--no-highlight")
("-q" "Quiet" "--quiet")
("-v" "Verbose output" "--verbose")
("-u" "Unstable" "--unstable")
(justl--color)
]
["Actions"
Expand Down Expand Up @@ -705,7 +709,7 @@ tweaked further by the user."
(let* ((justfiles (justl--find-justfiles default-directory))
(entries (justl--get-recipies-with-desc justfiles)))
(when (not (eq justl--list-command-exit-code 0) )
(error "Just process exited with exit-code %s. Check justfile syntax"
(error "Just process exited with exit-code %s. Check justfile syntax"
justl--list-command-exit-code))
(justl--save-line)
(setq tabulated-list-entries (justl--tabulated-entries entries))
Expand Down

0 comments on commit d23b95f

Please sign in to comment.