cargo-information 0.7.0

A cargo subcommand to show information about crates.
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::command::info;
use cargo::util::command_prelude::*;

pub fn main(gctx: &mut GlobalContext) -> CliResult {
    let matches = info::cli().try_get_matches()?;
    match matches.subcommand() {
        Some(("info", args)) => info::exec(gctx, args),
        _ => unreachable!("clap should ensure we don't get here"),
    }
}