diff options
| author | Mike Vink <mike1994vink@gmail.com> | 2023-03-02 10:34:02 +0000 |
|---|---|---|
| committer | Mike Vink <mike1994vink@gmail.com> | 2023-03-02 10:34:24 +0000 |
| commit | 5c2086b3fee16a7781b167f909e59b286ae30fee (patch) | |
| tree | cf9daf7604e3206af52b66bff64111ad14e4714c | |
| parent | e2c53e9a3187f3071b686e4df7ae3a9fc62df003 (diff) | |
add azure pipelines debug command
| -rw-r--r-- | fnl/conf/init.fnl | 2 |
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>") |
