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,5 +1,6 @@
local Job = require "plenary.job"
local ts_utils = require "gopher._utils.ts"
local c = require("gopher.config").config.commands
local u = require "gopher._utils"
local M = {}
@ -7,7 +8,7 @@ local M = {}
local function run(cmd_args)
Job
:new({
command = "gotests",
command = c.gotests,
args = cmd_args,
on_exit = function(_, retval)
if retval ~= 0 then