feat: change the files encapsulation
This commit is contained in:
@@ -92,7 +92,7 @@ function M.get_file_contents(files)
|
||||
local data = uv.fs_read(fd, stat.size, 0)
|
||||
uv.fs_close(fd)
|
||||
if data then
|
||||
table.insert(sections, "\n<<<CGPT Current File\n" .. path .. "\n" .. data .. "\n<<<CGPT Current File END\n")
|
||||
table.insert(sections, "\nFile: `" .. f .. "`\n```\n" .. data .. "\n```\n")
|
||||
end
|
||||
else
|
||||
uv.fs_close(fd)
|
||||
|
||||
Reference in New Issue
Block a user