async fn exec(app: Arc<App>) -> Result<()> {
        let exit_code = process::Command::new("cmd")
            .arg(
                format!(
                    "/C git clone {} --depth=1",
                    app.args.value_of("repository").unwrap()
                )
                .as_str(),
            )
            .status()
            .unwrap();

        if exit_code.success() {
            process::Command::new("volt")
                .arg("install")
                .spawn()
                .unwrap();
        } else {
        }

        Ok(())
    }
/// Execute the `volt clone` command
///
/// Clone and setup a repository from Github
/// ## Arguments
/// * `app` - Instance of the command (`Arc<App>`)
/// ## Examples
/// ```
/// // Clone the react repository (https://github.com/facebook/react)
/// // .exec() is an async call so you need to await it
/// Add.exec(app).await;
/// ```
/// ## Returns
/// * `Result<()>`
Execute the `volt clone` command
Clone and setup a repository from Github
Execute the ` volt clone ` command Clone and setup a repository from Github
async fn exec(app: Arc<App>) -> Result<()> {
        let exit_code = process::Command::new("cmd")
            .arg(
                format!(
                    "/C git clone {} --depth=1",
                    app.args.value_of("repository").unwrap()
                )
                .as_str(),
            )
            .status()
            .unwrap();
        if exit_code.success() {
            process::Command::new("volt")
                .arg("install")
                .spawn()
                .unwrap();
        } else {
        }
        Ok(())
    }
async fn exec ( app : Arc < App > ) -> Result < ( ) > { let exit_code = process :: Command :: new ( " " ) . arg ( format ! ( " " app args value_of ( " " ) unwrap ( ) ) . as_str ( ) , ) . status ( ) . unwrap ( ) ; if exit_code . success ( ) { process :: Command :: new ( " " ) . arg ( " " ) . spawn ( ) . unwrap ( ) ; } else { } Ok ( ( ) ) }
Execute the `volt clone` command
Clone and setup a repository from Github
Execute the ` volt clone ` command Clone and setup a repository from Github
None
app
Arc<App>
examples
```
Clone the react repository
.exec() is an async call so you need to await it
Add.exec(app).await;
```
` ` ` Clone the react repository . exec () is an async call so you need to await it Add . exec ( app ) . await ; ` ` `