mirror of
https://codeberg.org/PGPainless/sop-java.git
synced 2025-09-08 01:39:43 +02:00
Fix formatting
This commit is contained in:
parent
082cbde869
commit
a72545e3b9
3 changed files with 8 additions and 4 deletions
|
@ -88,7 +88,10 @@ class SopCLI {
|
||||||
// Hide generate-completion command
|
// Hide generate-completion command
|
||||||
subcommands["generate-completion"]?.commandSpec?.usageMessage()?.hidden(true)
|
subcommands["generate-completion"]?.commandSpec?.usageMessage()?.hidden(true)
|
||||||
// render Input/Output sections in help command
|
// render Input/Output sections in help command
|
||||||
subcommands.values.filter { (it.getCommand() as Any) is AbstractSopCmd } // Only for AbstractSopCmd objects
|
subcommands.values
|
||||||
|
.filter {
|
||||||
|
(it.getCommand() as Any) is AbstractSopCmd
|
||||||
|
} // Only for AbstractSopCmd objects
|
||||||
.forEach { (it.getCommand() as AbstractSopCmd).installIORenderer(it) }
|
.forEach { (it.getCommand() as AbstractSopCmd).installIORenderer(it) }
|
||||||
// overwrite executable name
|
// overwrite executable name
|
||||||
commandName = EXECUTABLE_NAME
|
commandName = EXECUTABLE_NAME
|
||||||
|
@ -96,7 +99,8 @@ class SopCLI {
|
||||||
executionExceptionHandler = SOPExecutionExceptionHandler()
|
executionExceptionHandler = SOPExecutionExceptionHandler()
|
||||||
exitCodeExceptionMapper = SOPExceptionExitCodeMapper()
|
exitCodeExceptionMapper = SOPExceptionExitCodeMapper()
|
||||||
isCaseInsensitiveEnumValuesAllowed = true
|
isCaseInsensitiveEnumValuesAllowed = true
|
||||||
}.execute(*args)
|
}
|
||||||
|
.execute(*args)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,13 +5,13 @@
|
||||||
package sop.cli.picocli.commands
|
package sop.cli.picocli.commands
|
||||||
|
|
||||||
import java.io.IOException
|
import java.io.IOException
|
||||||
|
import java.util.*
|
||||||
import picocli.CommandLine.Command
|
import picocli.CommandLine.Command
|
||||||
import picocli.CommandLine.Option
|
import picocli.CommandLine.Option
|
||||||
import picocli.CommandLine.Parameters
|
import picocli.CommandLine.Parameters
|
||||||
import sop.cli.picocli.SopCLI
|
import sop.cli.picocli.SopCLI
|
||||||
import sop.exception.SOPGPException
|
import sop.exception.SOPGPException
|
||||||
import sop.util.HexUtil.Companion.bytesToHex
|
import sop.util.HexUtil.Companion.bytesToHex
|
||||||
import java.util.*
|
|
||||||
|
|
||||||
@Command(
|
@Command(
|
||||||
name = "validate-userid",
|
name = "validate-userid",
|
||||||
|
|
|
@ -6,8 +6,8 @@ package sop.operation
|
||||||
|
|
||||||
import java.io.IOException
|
import java.io.IOException
|
||||||
import java.io.InputStream
|
import java.io.InputStream
|
||||||
import sop.exception.SOPGPException
|
|
||||||
import java.util.*
|
import java.util.*
|
||||||
|
import sop.exception.SOPGPException
|
||||||
|
|
||||||
/** Subcommand to validate UserIDs on certificates. */
|
/** Subcommand to validate UserIDs on certificates. */
|
||||||
interface ValidateUserId {
|
interface ValidateUserId {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue