Skip to main content

expand_command

Function expand_command 

Source
pub fn expand_command(template: &str, arguments: &str) -> String
Expand description

v1 command template expansion (prompt.ts command()): $N placeholders (last position swallows the remaining args), then $ARGUMENTS, then append rule. !…`` shell snippets (ConfigMarkdown.shell) are NOT evaluated — neither built-in template uses them (documented gap for exotic config commands).