Skip to content

Commit

Permalink
Merge pull request #19 from aymanosman/master
Browse files Browse the repository at this point in the history
add --exclude option
  • Loading branch information
ananthakumaran authored Mar 3, 2024
2 parents e008c89 + 8669c8e commit 5e8f6b6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,14 @@ command.

#+begin_src emacs-lisp
(add-hook 'elixir-mode-hook 'exunit-mode)

;; Optionally configure `transient-default-level' to 5 to show extra switches
;; Or use `C-x l' to change the level of individual commands and switches
(setq transient-default-level 5) ;; default is 4
#+end_src

Currently, the only extra switch that is shown is =--exclude=.

* Commands

| Keyboard | Description |
Expand Down
10 changes: 9 additions & 1 deletion exunit.el
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,21 @@

;;; Private

(transient-define-infix exunit-transient:--exclude ()
:description "Exclude"
:class 'transient-option
:multi-value 'repeat
:shortarg "-e"
:argument "--exclude=")

(transient-define-prefix exunit-transient ()
"ExUnit"
["Arguments"
[("-f" "Failed" "--failed")
("-s" "Stale" "--stale")
("-t" "Trace" "--trace")
("-c" "Coverage" "--cover")]
("-c" "Coverage" "--cover")
(exunit-transient:--exclude :level 5)]
[("-z" "Slowest" "--slowest=10")
("-m" "Fail Fast" "--max-failures=1")]]
["Actions"
Expand Down

0 comments on commit 5e8f6b6

Please sign in to comment.