cli/src/main/kotlin/org/jetbrains/zip/signer/ZipSigningTool.kt [20:40]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @JvmStatic fun main(args: Array) { if (args.isEmpty()) { System.err.println("Command is not specified: `sign` and `verify` commands are supported.") exitProcess(1) } val command = args[0] val restParameters = args.copyOfRange(1, args.size) when (command) { "sign" -> sign(restParameters) "verify" -> verify(restParameters) else -> { System.err.println("Unknown command `$command`: `sign` commands are supported.") exitProcess(1) } } } private fun sign(params: Array) { val options = SigningOptions() Args.parseOrExit(options, params) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - google-kms-signer-cli/src/main/kotlin/org/jetbrains/zip/signer/GoogleCloudSignerCli.kt [18:38]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @JvmStatic fun main(args: Array) { if (args.isEmpty()) { System.err.println("Command is not specified: `sign` and `verify` commands are supported.") exitProcess(1) } val command = args[0] val restParameters = args.copyOfRange(1, args.size) when (command) { "sign" -> sign(restParameters) "verify" -> verify(restParameters) else -> { System.err.println("Unknown command `$command`: `sign` commands are supported.") exitProcess(1) } } } private fun sign(params: Array) { val options = SigningOptions() Args.parseOrExit(options, params) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -