Skip to main content

expand_shell

Function expand_shell 

Source
pub async fn expand_shell(content: &str, cwd: &Path) -> String
Expand description

Expands !`command` markers in content by running each command via $SHELL -c (fallback sh) from cwd and substituting the trimmed stdout. Returns content unchanged if no markers are present.