Skip to main content

parse_builder_chain

Function parse_builder_chain 

Source
pub fn parse_builder_chain(bare: &str) -> Result<ChainParts, ()>
Expand description

Splits a bare command token (urgency/optional already stripped) into the command name, optional primary argument, and builder-chain arguments.

/read(src/main.rs) → name=read, primary=Some("src/main.rs"), args=[] /edit(path).find(old).replace(new) → name=edit, primary=Some("path"), args=[find(old), replace(new)] /echo.text(hello) → name=echo, primary=None, args=[text(hello)] /build → name=build, primary=None, args=[]