Function ci_info::get[][src]

pub fn get() -> CiInfo

Loads and returns the CI info of the current environment.

Example

extern crate ci_info;

fn main() {
    let info = ci_info::get();

    println!("Is CI: {}", info.ci);
    if info.ci {
        println!("Vendor: {:#?}", info.vendor.unwrap());
    }
}