rtb-cli 0.6.0

Rust Tool Base — CLI application scaffolding, clap integration, and built-in commands.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! T1a — calling `.build()` without `.metadata(…)` must fail to
//! compile because the `build` method is only impl'd on
//! `ApplicationBuilder<HasMetadata, HasVersion>`.

use rtb_cli::Application;
use rtb_app::version::VersionInfo;
use semver::Version;

fn main() {
    let _ = Application::builder()
        .version(VersionInfo::new(Version::new(1, 0, 0)))
        .build();
}