Skip to main content

run

Function run 

Source
pub fn run(
    package_name: &str,
    location: Option<String>,
    yes: bool,
) -> Result<()>
Expand description

Runs the clone command to clone a package’s git repository.

§Errors

Returns an error if the package cannot be resolved, if its metadata cannot be parsed, if it has no git repository defined, or if the git clone command fails.

§Panics

This function does not explicitly panic.