Created
June 12, 2019 19:47
-
-
Save abrochard/266bfcd90daf46c161e167c9bc4e5aba to your computer and use it in GitHub Desktop.
transient demo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun echo-function (&optional args) | |
(interactive | |
(list (transient-args 'test-transient-command))) | |
(message "echo %s" args)) | |
(define-infix-argument test-transient:--message () | |
:description "Message" | |
:class 'transient-option | |
:shortarg "-m" | |
:argument "--message=") | |
(define-transient-command test-transient-command () | |
"Test transient comment." | |
["Arguments" | |
(test-transient:--message) | |
("-s" "Squash" "--squash")] | |
["Actions" | |
("e" "Echo function" echo-function)]) | |
(test-transient-command) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment