Skip to main content

parse_scopes

Function parse_scopes 

Source
pub fn parse_scopes(raw: &str) -> Result<Vec<String>, RkError>
Expand description

The --scopes argument parsed into the recorded list.

Comma-separated, each scope non-empty and made of letters, digits, and _ . / - — a set safe for the title checks’ regular expression once the renderer escapes the dot, the one special character among them.

§Errors

Returns RkError::Usage naming the offending scope, or the empty list.