From 6fc8567c918063bd7eb9d38d5fdf9cfc69346986 Mon Sep 17 00:00:00 2001 From: Keagan McClelland Date: Mon, 20 Sep 2021 11:16:37 -0600 Subject: [PATCH] rename ssh 'remove' to 'delete' --- appmgr/src/ssh.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/appmgr/src/ssh.rs b/appmgr/src/ssh.rs index dee7c30e4..0cdccaf54 100644 --- a/appmgr/src/ssh.rs +++ b/appmgr/src/ssh.rs @@ -47,7 +47,7 @@ impl std::str::FromStr for PubKey { } } -#[command(subcommands(add, remove, list,))] +#[command(subcommands(add, delete, list,))] pub fn ssh() -> Result<(), Error> { Ok(()) } @@ -75,7 +75,7 @@ pub async fn add(#[context] ctx: RpcContext, #[arg] key: PubKey) -> Result Result<(), Error> { +pub async fn delete(#[context] ctx: RpcContext, #[arg] fingerprint: String) -> Result<(), Error> { let pool = &ctx.secret_store; // check if fingerprint is in DB // if in DB, remove it from DB