From 3d4554a5a44d252b673a563ff2b64233f4e83a1f Mon Sep 17 00:00:00 2001 From: franzi Date: Thu, 5 Dec 2024 15:42:19 +0100 Subject: [PATCH] Add examples for `sq cert list` - List all bindings for User IDs containing a specific email address - List all paths to a specific certificate - See: #451 --- src/cli/cert/list.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/cli/cert/list.rs b/src/cli/cert/list.rs index 75d0c9ce..14f93572 100644 --- a/src/cli/cert/list.rs +++ b/src/cli/cert/list.rs @@ -25,6 +25,18 @@ const EXAMPLES: Actions = Actions { ).command (&[ "sq", "cert", "list", "@example.org", ]).build(), + + Action::example().comment( + "List all authenticated bindings for User IDs containing a specific email address." + ).command (&[ + "sq", "cert", "list", "--email", "alice@example.org", + ]).build(), + + Action::example().comment( + "List all paths to certificates containing a specific email address." + ).command (&[ + "sq", "cert", "list", "--gossip", "--show-paths", "--email", "alice@example.org", + ]).build(), ] }; test_examples!(sq_cert_list, EXAMPLES);