Added lots of comments and documentation 📘

This commit is contained in:
Harrison Cramer
2023-08-18 19:22:57 -04:00
parent 2846dd3239
commit 16ed361333
7 changed files with 54 additions and 34 deletions

View File

@@ -2,6 +2,8 @@ local Job = require("plenary.job")
local state = require("gitlab.state")
local M = {}
-- This function is responsible for making API calls to the Go server and
-- running the callbacks associated with those jobs when the JSON is returned
M.run_job = function(endpoint, method, body, callback)
local args = { "-s", "-X", (method or "POST"), string.format("localhost:%s/", state.PORT) .. endpoint }