netsky 0.1.4

netsky CLI: the viable system launcher and subcommand dispatcher
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! netsky CLI entry point. Parses argv with clap, dispatches to
//! [`cmd`] submodules. Each subcommand owns a small file there.

pub mod cli;
pub mod cmd;

use clap::Parser;

pub fn run<I, T>(args: I) -> netsky_core::Result<()>
where
    I: IntoIterator<Item = T>,
    T: Into<std::ffi::OsString> + Clone,
{
    let cli = cli::Cli::parse_from(args);
    cli::dispatch(cli)
}