feat(rest): add +jq flag

Adds support for setting variables from results using jq expressions.

Ref: https://github.com/pashky/restclient.el
Ref: https://github.com/ljos/jq-mode
Close: #5238
This commit is contained in:
Henrik Lissner 2022-06-19 14:56:04 +02:00
parent 49ef0fa8dd
commit 92a5c28687
No known key found for this signature in database
GPG key ID: B60957CA074D39A3
2 changed files with 14 additions and 0 deletions

View file

@ -33,3 +33,13 @@ certs, rather than reject them silently."
:when (featurep! :completion company) :when (featurep! :completion company)
:after restclient :after restclient
:config (set-company-backend! 'restclient-mode 'company-restclient)) :config (set-company-backend! 'restclient-mode 'company-restclient))
(use-package! restclient-jq
:when (featurep! +jq)
:after restclient)
(use-package! jq-mode
:when (featurep! +jq)
:after restclient-jq)

View file

@ -4,3 +4,7 @@
(package! restclient :pin "9e2cfa86529133eba6c9ef53794be182f15e4c21") (package! restclient :pin "9e2cfa86529133eba6c9ef53794be182f15e4c21")
(when (featurep! :completion company) (when (featurep! :completion company)
(package! company-restclient :pin "e5a3ec54edb44776738c13e13e34c85b3085277b")) (package! company-restclient :pin "e5a3ec54edb44776738c13e13e34c85b3085277b"))
(when (featurep! +jq)
(package! jq-mode :pin "071c1c29bac30351ad338136f2b625e5601365cd")
(package! restclient-jq :pin "ae79e7dd283890072da69b8f48aeec1afd0d9442"))