init
This commit is contained in:
247 files changed
+35538
No files matched your search
@@ -0,0 +1,19 @@
|
||||
use base64::prelude::*;
|
||||
use clap::Parser;
|
||||
use tsproto::license::*;
|
||||
|
||||
#[derive(Parser, Debug)]
|
||||
#[command(author, about)]
|
||||
struct Args {
|
||||
/// The license data (base64)
|
||||
#[arg()]
|
||||
license: String,
|
||||
}
|
||||
|
||||
fn main() {
|
||||
// Parse command line options
|
||||
let args = Args::parse();
|
||||
|
||||
let l = Licenses::parse(BASE64_STANDARD.decode(&args.license).unwrap()).unwrap();
|
||||
println!("{:#?}", l);
|
||||
}
|
||||
Reference in new issue
Block a user