feat(config): add base implementation

* feat(config): naive implementation

feat(config): get command for a run from config

* docs: add config

* fix typo [skip ci]

* test: add config
This commit is contained in:
Smirnov Oleksandr 2022-06-27 20:28:35 +03:00 committed by GitHub
parent 1db0914cfc
commit 40a2839eab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 97 additions and 10 deletions

View file

@ -1,4 +1,5 @@
local Job = require "plenary.job"
local c = require("gopher.config").config.commands
local u = require "gopher._utils"
---run "go mod"
@ -13,7 +14,7 @@ return function(...)
Job
:new({
command = "go",
command = c.go,
args = cmd_args,
on_exit = function(_, retval)
if retval ~= 0 then