openpgp 0.1.5

Low-level OpenPGP packet operations based on rPGP
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// SPDX-FileCopyrightText: Heiko Schaefer <heiko@schaefer.name>
// SPDX-License-Identifier: MIT OR Apache-2.0

use anyhow::Result;
use clap::Parser;
use openpgp::{dump, split, Args, Command};

fn main() -> Result<()> {
    let args = Args::parse();
    match args.cmd {
        Command::Dump(dc) => dump(dc.input)?,
        Command::Split(sc) => split(sc.input)?,
    }

    Ok(())
}