feat(json2go): support manual input
This commit is contained in:
parent
72dd68f25f
commit
bc3ce2fdf4
4 changed files with 18 additions and 2 deletions
|
|
@ -72,8 +72,9 @@ end)
|
|||
|
||||
-- :GoJson
|
||||
cmd("GoJson", function(opts)
|
||||
require("gopher.json2go").json2go(opts.fargs[1])
|
||||
end, "?")
|
||||
local inp = ((opts.args ~= "" and opts.args) or nil)
|
||||
require("gopher.json2go").json2go(inp)
|
||||
end, "*")
|
||||
|
||||
-- :GoTest
|
||||
cmd("GoTestAdd", function()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue