feat(json2go): support manual input

This commit is contained in:
Oleksandr Smirnov 2025-12-08 17:38:43 +02:00
parent 72dd68f25f
commit bc3ce2fdf4
No known key found for this signature in database
4 changed files with 18 additions and 2 deletions

View file

@ -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()