mirror of
https://codeberg.org/PGPainless/sop-java.git
synced 2025-09-08 17:59:43 +02:00
Implement '--signing-only' option for 'generate-key' command
This commit is contained in:
parent
7e1377a28c
commit
6afe6896d8
4 changed files with 41 additions and 0 deletions
|
@ -34,6 +34,9 @@ public class GenerateKeyCmd extends AbstractSopCmd {
|
|||
paramLabel = "PROFILE")
|
||||
String profile;
|
||||
|
||||
@CommandLine.Option(names = "--signing-only")
|
||||
boolean signingOnly = false;
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
GenerateKey generateKey = throwIfUnsupportedSubcommand(
|
||||
|
@ -48,6 +51,10 @@ public class GenerateKeyCmd extends AbstractSopCmd {
|
|||
}
|
||||
}
|
||||
|
||||
if (signingOnly) {
|
||||
generateKey.signingOnly();
|
||||
}
|
||||
|
||||
for (String userId : userId) {
|
||||
generateKey.userId(userId);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue