mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +00:00
rename ssh 'remove' to 'delete'
This commit is contained in:
@@ -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> {
|
pub fn ssh() -> Result<(), Error> {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
@@ -75,7 +75,7 @@ pub async fn add(#[context] ctx: RpcContext, #[arg] key: PubKey) -> Result<Strin
|
|||||||
Ok(fp)
|
Ok(fp)
|
||||||
}
|
}
|
||||||
#[command(display(display_none))]
|
#[command(display(display_none))]
|
||||||
pub async fn remove(#[context] ctx: RpcContext, #[arg] fingerprint: String) -> Result<(), Error> {
|
pub async fn delete(#[context] ctx: RpcContext, #[arg] fingerprint: String) -> Result<(), Error> {
|
||||||
let pool = &ctx.secret_store;
|
let pool = &ctx.secret_store;
|
||||||
// check if fingerprint is in DB
|
// check if fingerprint is in DB
|
||||||
// if in DB, remove it from DB
|
// if in DB, remove it from DB
|
||||||
|
|||||||
Reference in New Issue
Block a user