From 6b84d2db79ece3a9165841120b200ea9f71082fd Mon Sep 17 00:00:00 2001 From: "Neal H. Walfield" Date: Wed, 12 Jun 2024 21:51:04 +0200 Subject: [PATCH] Improve examples for sq key subkey expire. --- src/cli/key.rs | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/cli/key.rs b/src/cli/key.rs index 4f8721c7..497d7eaa 100644 --- a/src/cli/key.rs +++ b/src/cli/key.rs @@ -1542,11 +1542,20 @@ modified certificate to stdout.", const SQ_KEY_SUBKEY_EXPIRE_EXAMPLES: Actions = Actions { actions: &[ Action::Example(Example { - comment: "Make Bob's authentication subkey expire in six months.", + comment: "\ +Import Alice's key.", + command: &[ + "sq", "key", "import", + "alice-secret.pgp", + ], + }), + Action::Example(Example { + comment: "\ +Make Alice's authentication subkey expire in 6 months.", command: &[ "sq", "key", "subkey", "expire", "6m", - "--cert-file", "bob-secret.pgp", - "--key", "6AEACDD24F896624", + "--cert", "EB28F26E2739A4870ECC47726F0073F60FD0CBF0", + "--key", "0D45C6A756A038670FDFD85CB1C82E8D27DB23A1", ], }), ],