Skip to main content

parse_resource

Function parse_resource 

Source
pub fn parse_resource(
    resource: &str,
) -> Result<GithubResource, InvalidGithubResource>
Expand description

Parse only the GitHub resource forms that the read command exposes.

This rejects query strings, fragments, ports, credentials, empty path components, and alternate URL shapes rather than silently treating them as filesystem paths or a different remote resource.