1
0
Fork 0
codesnap.nvim/lua/codesnap/utils/command.lua

13 lines
227 B
Lua
Raw Normal View History

2024-02-13 06:05:36 +00:00
local command_util = {}
function command_util.exec_command(command, mode)
local handle = assert(io.popen(command, mode))
local origin = assert(handle:read("*a"))
handle:close()
return origin
end
return command_util