diff options
| author | Mike Vink <mike1994vink@gmail.com> | 2022-10-29 14:35:33 +0200 |
|---|---|---|
| committer | Mike Vink <mike1994vink@gmail.com> | 2022-10-29 14:35:33 +0200 |
| commit | a39a1c7cb6a81764bb5c05155243c16c2ddfb7f6 (patch) | |
| tree | 2ae547e4632b8ce99e1c921bd8f5b37419fac4b3 /vim/.config/nvim/lua/vimrc/azure.lua | |
| parent | 46eb3563ac990ef5172a8addefa7342d2cf39477 (diff) | |
move
Diffstat (limited to 'vim/.config/nvim/lua/vimrc/azure.lua')
| -rw-r--r-- | vim/.config/nvim/lua/vimrc/azure.lua | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/vim/.config/nvim/lua/vimrc/azure.lua b/vim/.config/nvim/lua/vimrc/azure.lua deleted file mode 100644 index 9b6b245..0000000 --- a/vim/.config/nvim/lua/vimrc/azure.lua +++ /dev/null @@ -1,39 +0,0 @@ -local M = {} - -function M.setup(opts) - -- assert(opts.org_url, "org url is required. ") - -- assert(opts.pipeline_id, "pipeline id is required. ") - -- assert(opts.api_version, "api version is required. ") - -- assert(opts.basic_auth_token, "basic auth token is required. ") - - -- local functions = {} - -- functions.pipeline_bug = function(output_qf) - -- local cmd = { - -- "/bin/sh", - -- "-c", - -- [[curl -sSL --compressed -X POST -H ]] .. - -- [['Authorization: Basic ]] .. opts.basic_auth_token .. [[' ]] .. - -- [[-H 'Content-Type: application/json' ]] .. - -- [[--data-raw "{ \"previewRun\": true }" ]] .. - -- opts.org_url .. "/_apis/pipelines/" .. opts.pipeline_id .. "/preview?api-version=" .. opts.api_version .. - -- " | jq .finalYaml | xargs -0 printf %b | sed -e 's@^\"@@' -e 's@\"$@@'" - -- } - -- P(cmd) - -- require('firvish.job_control').start_job({ - -- cmd = cmd, - -- filetype = "log", - -- title = "pipeline", - -- listed = true, - -- output_qf = output_qf, - -- is_background_job = false, - -- cwd = opts.chart_dir, - -- }) - -- end - - -- _G.azure_functions = functions - - -- cmd [[command! -bang PipelineBug :lua _G.azure_functions.pipeline_bug("<bang>" ~= "!")]] - -end - -return M |
