Add locals add and remove subcommands
- `locals add` adds a local (unintroduced) certificate for encryption. - `locals remove` removes/deacivates a local certificate. - Overall cleanup
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
//! locals subcommand
|
||||
use anyhow::Result;
|
||||
|
||||
use crate::cli::cli_args::{LocalsCommand, LocalsSubcommand};
|
||||
@@ -11,10 +12,10 @@ pub mod remove;
|
||||
pub async fn dispatch(cmd: LocalsCommand, config: HuskConfigContainer) -> Result<()> {
|
||||
match cmd.subcommand {
|
||||
LocalsSubcommand::Add(add_cmd) => {
|
||||
add::dispatch(add_cmd, &config).await?;
|
||||
add::dispatch(add_cmd, config).await?;
|
||||
},
|
||||
LocalsSubcommand::Remove(rm_cmd) => {
|
||||
remove::dispatch(rm_cmd, &config).await?;
|
||||
remove::dispatch(rm_cmd, config).await?;
|
||||
},
|
||||
LocalsSubcommand::List => {
|
||||
let context = HuskContext::new(&config.into())?;
|
||||
|
||||
Reference in New Issue
Block a user