summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Vink <mike1994vink@gmail.com>2023-03-02 10:34:02 +0000
committerMike Vink <mike1994vink@gmail.com>2023-03-02 10:34:24 +0000
commit5c2086b3fee16a7781b167f909e59b286ae30fee (patch)
treecf9daf7604e3206af52b66bff64111ad14e4714c
parente2c53e9a3187f3071b686e4df7ae3a9fc62df003 (diff)
add azure pipelines debug command
-rw-r--r--fnl/conf/init.fnl2
1 files changed, 2 insertions, 0 deletions
diff --git a/fnl/conf/init.fnl b/fnl/conf/init.fnl
index 101fe89..c56aaa7 100644
--- a/fnl/conf/init.fnl
+++ b/fnl/conf/init.fnl
@@ -10,6 +10,8 @@
(require :conf.diagnostic)
+;; TODO: make a function that sets this autocommand: au BufWritePost currentfile :!curl -X POST -d "{\"previewRun\": true, \"yamlOverride\": \"$(cat % | yq -P)\", \"resources\": {\"repositories\": {\"self\": {\"refName\": \"refs/heads/branch\"}}}}" -s -H "Content-Type: application/json" -H "Authorization: Basic $WORK_AZDO_GIT_AUTH" "$WORK_AZDO_GIT_ORG_URL/Stater/_apis/pipelines/pipelineid/preview?api-version=7.1-preview.1" | jq -r '.finalYaml // .' > scratch.yaml
+
(let [map vim.keymap.set]
(map :n :<leader>qo ":copen<cr>")
(map :n :<leader>qc ":cclose<cr>")