remove api module
This commit is contained in:
parent
ab874c6c4f
commit
59de7dc72d
3 changed files with 40 additions and 45 deletions
|
|
@ -1,5 +1,29 @@
|
|||
local GOPHER = {}
|
||||
local stags = require "gopher.struct_tags"
|
||||
local tests = require "gopher.gotests"
|
||||
local cmd = require "gopher._utils.commands"
|
||||
local gopher = {}
|
||||
|
||||
GOPHER.setup = require("gopher.config").setup
|
||||
gopher.setup = require("gopher.config").setup
|
||||
gopher.install_deps = require "gopher.installer"
|
||||
gopher.tags_add = stags.add
|
||||
gopher.tags_rm = stags.remove
|
||||
gopher.impl = require "gopher.impl"
|
||||
gopher.iferr = require "gopher.iferr"
|
||||
gopher.comment = require "gopher.comment"
|
||||
gopher.test_add = tests.func_test
|
||||
gopher.test_exported = tests.all_exported_tests
|
||||
gopher.tests_all = tests.all_tests
|
||||
gopher.get = function(...)
|
||||
cmd("get", ...)
|
||||
end
|
||||
gopher.mod = function(...)
|
||||
cmd("mod", ...)
|
||||
end
|
||||
gopher.generate = function(...)
|
||||
cmd("generate", ...)
|
||||
end
|
||||
gopher.work = function(...)
|
||||
cmd("work", ...)
|
||||
end
|
||||
|
||||
return GOPHER
|
||||
return gopher
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue