Castor-Gemini/log/content/cli_v2_s2.snippet

17 lines
405 B
Plaintext

useEffect(() => {
// Don't execute for pending or empty responses.
if (isPending || !text) {
return;
}
// TODO: Replace this with the actual command you want to run.
const commandToRun = 'echo "Gemini message rendered: Hello"';
exec(commandToRun, (error, stdout, stderr) => {
if (error) {
console.error(`exec error: ${error}`);
return;
}
});
}, [text, isPending]);