|
|
@ -66,11 +66,18 @@ fn install_tracing() {
|
|
|
|
.init();
|
|
|
|
.init();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#[instrument]
|
|
|
|
async fn work(op: config::Operation) -> Result<(), eyre::Report>
|
|
|
|
async fn work(op: config::Operation) -> Result<(), eyre::Report>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
debug!("Got op: {:#?}", op);
|
|
|
|
debug!("Got op");
|
|
|
|
match op {
|
|
|
|
match op {
|
|
|
|
config::Operation::Help => args::usage(),
|
|
|
|
config::Operation::Help => args::usage(),
|
|
|
|
|
|
|
|
config::Operation::GenerateKey(config::op::GenerateKey::Aes(aes)) => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
config::Operation::GenerateKey(config::op::GenerateKey::Rsa(rsa)) => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
_ => todo!(),
|
|
|
|
_ => todo!(),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Ok(())
|
|
|
|
Ok(())
|
|
|
|