Fix formatting issues

This commit is contained in:
Paul Schaub 2025-04-14 10:58:58 +02:00
parent 091b5f9a5e
commit 138e275bb6
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
2 changed files with 7 additions and 5 deletions

View file

@ -21,7 +21,9 @@ class UpdateKeyExternal(binary: String, environment: Properties) : UpdateKey {
override fun signingOnly(): UpdateKey = apply { commandList.add("--signing-only") }
override fun noAddedCapabilities(): UpdateKey = apply { commandList.add("--no-added-capabilities") }
override fun noAddedCapabilities(): UpdateKey = apply {
commandList.add("--no-added-capabilities")
}
override fun withKeyPassword(password: ByteArray): UpdateKey = apply {
commandList.add("--with-key-password=@ENV:KEY_PASSWORD_$argCount")

View file

@ -20,14 +20,14 @@ interface UpdateKey {
fun noArmor(): UpdateKey
/**
* Allow key to be used for signing only.
* If this option is not present, the operation may add a new, encryption-capable component key.
* Allow key to be used for signing only. If this option is not present, the operation may add a
* new, encryption-capable component key.
*/
@Throws(SOPGPException.UnsupportedOption::class) fun signingOnly(): UpdateKey
/**
* Do not allow adding new capabilities to the key.
* If this option is not present, the operation may add support for new capabilities to the key.
* Do not allow adding new capabilities to the key. If this option is not present, the operation
* may add support for new capabilities to the key.
*/
@Throws(SOPGPException.UnsupportedOption::class) fun noAddedCapabilities(): UpdateKey