mirror of
https://github.com/mistricky/codesnap.nvim.git
synced 2024-12-31 14:07:30 -08:00
12 lines
227 B
Lua
12 lines
227 B
Lua
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
|