* refactor: move all plugin functionality to init.lua * fix(commands): now it uses correct module paths * refactor(config): change way how it handles options * refactor(gotests): use correct config, change way how deps required, fix some typos * fix(healthchecker): use correct config * refactor(iferr): change api * refactor(impl): change api * refactor(installer): change api * refactor(struct_tags): change way of importting deps * refactor(struct_tags): rename M to struct_tags * run stylua * refactor(dap): make it all in one file, and make some refactoring * refactor(_utils): change way how it organizes * fix: use new _utils api * refactor(_utils.health): reorganize module * refactor(_utils.ts): some renameing, moving requires lines * run stylua
35 lines
780 B
Lua
35 lines
780 B
Lua
local tags = require "gopher.struct_tags"
|
|
local tests = require "gopher.gotests"
|
|
local uc = require "gopher._utils.commands"
|
|
local gopher = {}
|
|
|
|
gopher.setup = require("gopher.config").setup
|
|
gopher.install_deps = require("gopher.installer").install_deps
|
|
gopher.impl = require("gopher.impl").impl
|
|
gopher.iferr = require("gopher.iferr").iferr
|
|
gopher.comment = require "gopher.comment"
|
|
|
|
gopher.tags_add = tags.add
|
|
gopher.tags_rm = tags.remove
|
|
|
|
gopher.test_add = tests.func_test
|
|
gopher.test_exported = tests.all_exported_tests
|
|
gopher.tests_all = tests.all_tests
|
|
|
|
gopher.get = function(...)
|
|
uc("get", ...)
|
|
end
|
|
|
|
gopher.mod = function(...)
|
|
uc("mod", ...)
|
|
end
|
|
|
|
gopher.generate = function(...)
|
|
uc("generate", ...)
|
|
end
|
|
|
|
gopher.work = function(...)
|
|
uc("work", ...)
|
|
end
|
|
|
|
return gopher
|