keyscope 1.4.2

Keyscope is a key and secret workflow
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::env;

fn main() {
    let github_key = env::args().nth(1).unwrap_or_default();

    let params = vec![github_key];
    let res = match keyscope::providers::GITHUB.key_validate(&params) {
        Ok(res) => res,
        Err(err) => {
            eprintln!("Error occurred during validation: {err}");
            std::process::exit(1);
        }
    };
    println!("Key validation: {}", res.ok);
}