mirror of
https://github.com/NLnetLabs/krill.git
synced 2026-09-22 01:14:54 +02:00
26 lines
580 B
Rust
26 lines
580 B
Rust
//! Command line client for the publication server. Uses the api.
|
|
extern crate krill;
|
|
|
|
use krill::pubc::cmsclient;
|
|
use krill::pubc::cmsclient::PubClient;
|
|
|
|
fn main() {
|
|
let options = match cmsclient::Options::create() {
|
|
Ok(o) => o,
|
|
Err(e) => {
|
|
eprintln!("{}", e);
|
|
::std::process::exit(1);
|
|
}
|
|
};
|
|
|
|
let format = options.format().clone();
|
|
|
|
match PubClient::execute(options) {
|
|
Ok(res) => res.report(&format),
|
|
Err(e) => {
|
|
eprintln!("{}", e);
|
|
::std::process::exit(1);
|
|
}
|
|
}
|
|
}
|