From 8a9f53553145d510e1478fe299715dd1f6663929 Mon Sep 17 00:00:00 2001 From: Paul Schaub Date: Mon, 17 Apr 2023 14:04:06 +0200 Subject: [PATCH] Add documentation to ListProfiles command --- sop-java/src/main/java/sop/operation/ListProfiles.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sop-java/src/main/java/sop/operation/ListProfiles.java b/sop-java/src/main/java/sop/operation/ListProfiles.java index 87bb3b3..5514649 100644 --- a/sop-java/src/main/java/sop/operation/ListProfiles.java +++ b/sop-java/src/main/java/sop/operation/ListProfiles.java @@ -8,8 +8,18 @@ import sop.Profile; import java.util.List; +/** + * Subcommand to list supported profiles of other subcommands. + */ public interface ListProfiles { + /** + * Provide the name of the subcommand for which profiles shall be listed. + * The returned list of profiles MUST NOT contain more than 4 entries. + * + * @param command command name (e.g.
generate-key
) + * @return list of profiles. + */ List subcommand(String command); }