oseda-cli 3.1.0

OSEDA project scaffolding
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::{
    error::Error,
    process::{Command, Stdio},
};

pub fn update() -> Result<(), Box<dyn Error>> {
    let status = Command::new("cargo")
        .args(["install", "oseda-cli"])
        .stdout(Stdio::inherit())
        .stdin(Stdio::inherit())
        .status()?;

    if !status.success() {
        return Err(format!("Error: exit status {}", status).into());
    }

    Ok(())
}