Bugfix: Fixes server.start() command

This commit is contained in:
Harrison Cramer
2023-08-28 08:25:30 -04:00
parent c29fa4f43f
commit 72a263d346
3 changed files with 7 additions and 7 deletions

View File

@@ -210,7 +210,7 @@ This plugin uses a Golang server to reach out to Gitlab. It's possible that some
```
:lua require("gitlab.server").build()
:lua require("gitlab.server").start()
:lua require("gitlab.server").start(function() print("Server started") end)
```
You can directly interact with the Go server like any other process:

View File

@@ -57,7 +57,7 @@ M.sequence = function(dependencies, cb)
return
end
server.start_server(function()
server.start(function()
state.go_server_running = true
handler:fetch(dependencies, 1)
end)

View File

@@ -1,13 +1,13 @@
-- This module contains the logic responsible for building and starting
-- the Golang server. The Go server is responsible for making API calls
-- to Gitlab and returning the data
local job = require("gitlab.job")
local state = require("gitlab.state")
local u = require("gitlab.utils")
local M = {}
local job = require("gitlab.job")
local state = require("gitlab.state")
local u = require("gitlab.utils")
local M = {}
-- Starts the Go server and call the callback provided
M.start_server = function(callback)
M.start = function(callback)
local command = state.settings.bin
.. " "
.. state.settings.project_id