refactor: template for including files (#807)

pull/810/head
sigoden 2 months ago committed by GitHub
parent 11022f88de
commit 298a45232b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -72,7 +72,7 @@ impl Input {
texts.push(String::new()); texts.push(String::new());
} }
for (path, contents) in files { for (path, contents) in files {
texts.push(format!("<!-- include: {path} -->\n\n{contents}\n")); texts.push(format!("`{path}`:\n\n{contents}\n"));
} }
let (role, with_session, with_agent) = resolve_role(&config.read(), role); let (role, with_session, with_agent) = resolve_role(&config.read(), role);
Ok(Self { Ok(Self {

Loading…
Cancel
Save