Bugfix: Fixes server.start() command
This commit is contained in:
@@ -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").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:
|
You can directly interact with the Go server like any other process:
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ M.sequence = function(dependencies, cb)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
server.start_server(function()
|
server.start(function()
|
||||||
state.go_server_running = true
|
state.go_server_running = true
|
||||||
handler:fetch(dependencies, 1)
|
handler:fetch(dependencies, 1)
|
||||||
end)
|
end)
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ local u = require("gitlab.utils")
|
|||||||
local M = {}
|
local M = {}
|
||||||
|
|
||||||
-- Starts the Go server and call the callback provided
|
-- Starts the Go server and call the callback provided
|
||||||
M.start_server = function(callback)
|
M.start = function(callback)
|
||||||
local command = state.settings.bin
|
local command = state.settings.bin
|
||||||
.. " "
|
.. " "
|
||||||
.. state.settings.project_id
|
.. state.settings.project_id
|
||||||
|
|||||||
Reference in New Issue
Block a user