rustuse-cli 0.2.0-beta.1

Command-line tooling for adopting, managing, and maintaining RustUse crates.
Documentation
//! Updates RustUse dependency versions within the current project configuration.

use std::path::PathBuf;

use anyhow::Result;
use clap::Args;

use crate::output::Output;

#[derive(Debug, Args)]
pub struct UpdateArgs {
    /// Facade repository path to update.
    #[arg(default_value = ".", value_name = "PATH")]
    pub path: PathBuf,
}

pub(crate) fn run(args: UpdateArgs, output: Output) -> Result<()> {
    let summary = format!(
        "RustUse facade update - root: {}; errors: {}; warnings: {}",
        args.path.display(),
        1,
        1
    );

    output.record("dev update", "unknown", &summary);

    Ok(())
}