Skip to main content

resolve_one

Function resolve_one 

Source
pub fn resolve_one(explicit: Option<&str>) -> Result<String>
Expand description

The single workspace to act on. Commands that operate on exactly one workspace take the first slug of resolve_list, so --workspace a,b is a harmless superset rather than a second syntax to learn.

No empty-list guard here: resolve_list only ever returns a non-empty Vec or an Err, never Ok(vec![]), so there is nothing for one to catch. Do not “restore” it.