mirror of
https://codeberg.org/PGPainless/sop-java.git
synced 2025-09-10 02:39:45 +02:00
Checkstyle and exception handling improvements
This commit is contained in:
parent
158cf28412
commit
48689ca406
2 changed files with 13 additions and 12 deletions
|
@ -4,11 +4,11 @@
|
|||
|
||||
package sop.cli.picocli.commands
|
||||
|
||||
import java.io.IOException
|
||||
import picocli.CommandLine
|
||||
import picocli.CommandLine.Command
|
||||
import sop.cli.picocli.SopCLI
|
||||
import sop.exception.SOPGPException
|
||||
import java.io.IOException
|
||||
|
||||
@Command(
|
||||
name = "merge-certs",
|
||||
|
@ -16,11 +16,9 @@ import java.io.IOException
|
|||
exitCodeOnInvalidInput = SOPGPException.UnsupportedOption.EXIT_CODE)
|
||||
class MergeCertsCmd : AbstractSopCmd() {
|
||||
|
||||
@CommandLine.Option(names = ["--no-armor"], negatable = true)
|
||||
var armor = false
|
||||
@CommandLine.Option(names = ["--no-armor"], negatable = true) var armor = false
|
||||
|
||||
@CommandLine.Parameters(paramLabel = "CERTS")
|
||||
var updates: List<String> = listOf()
|
||||
@CommandLine.Parameters(paramLabel = "CERTS") var updates: List<String> = listOf()
|
||||
|
||||
override fun run() {
|
||||
val mergeCerts = throwIfUnsupportedSubcommand(SopCLI.getSop().mergeCerts(), "merge-certs")
|
||||
|
@ -45,4 +43,4 @@ class MergeCertsCmd : AbstractSopCmd() {
|
|||
throw RuntimeException(e)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue