cargo-mate 1.8.0

Rust development companion that enhances cargo with intelligent workflows, state management, performance optimization, and comprehensive project monitoring.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use anyhow::Result;
use crate::cmd::smune::TideAction;
use crate::captain::tide::TideCharts;
pub fn handle_tide(action: TideAction) -> Result<()> {
    let mut charts = TideCharts::new()?;
    match action {
        TideAction::Show => {
            charts.show_interactive()?;
        }
        TideAction::Analyze => {
            charts.analyze_dependencies()?;
        }
        TideAction::Export { path } => {
            charts.export_csv(&path)?;
        }
    }
    Ok(())
}