Skip to content

Commit

Permalink
add emacs shortcut for generating
Browse files Browse the repository at this point in the history
  • Loading branch information
krvital committed Sep 25, 2024
1 parent e0d2dd3 commit 62493fb
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .dir-locals.el
Original file line number Diff line number Diff line change
@@ -1 +1,13 @@
((nil . ((cider-clojure-cli-aliases . ":dev"))))
((nil . ((cider-clojure-cli-aliases . ":dev")))
(clojure-mode
(eval . (defun aidbox-sdk-generate ()
(interactive)
(let ((language (completing-read "Select the language to generate: "
'("dotnet" "java" "python" "typescript"))))
(cider-interactive-eval
(format "(sdk/generate! :%s
\"http://localhost:3333/r4/fhir-packages\"
{:output-dir \"dist/%s\"
:auth-token \"YmFzaWM6c2VjcmV0\"
:exit (fn [_] nil)})"
language language)))))))

0 comments on commit 62493fb

Please sign in to comment.