This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local xml2lua = require("codecompanion.utils.xml.xml2lua") | |
local log = require("codecompanion.utils.log") | |
local function get_secret() | |
local cmd = os.getenv("HOME") .. "/scripts/get_secret.sh" | |
local handle = io.popen(cmd, "r") | |
if handle then | |
local result = handle:read("*a") | |
log:trace("Executed cmd: %s", cmd) | |
handle:close() |