Skip to main content

Module routing

Module routing 

Source
Expand description

Shared routing glue for the <browser>[/<tab>] positional commands (eval, fetch, storage, …).

These commands all parse the same positional shape and then peel the /<tab> suffix back off to recover the bare <browser> selector for crate::cli::mcp::resolve_browser. Keeping that one operation here avoids the three identical copies the routing handlers used to carry.

Functions§

strip_tab
Strip a /<tab> suffix from a raw <browser>[/<tab>] positional.