override fun processExternalCommandLineAsync()

in src/main/kotlin/org/jetbrains/kotlin/tools/testutils/IntegrationTestRunner.kt [46:57]


    override fun processExternalCommandLineAsync(args: Array<String>, currentDirectory: String?): Future<out CliResult> {
        if (!checkArguments(args)) {
            return CliResult.error(1, usageMessage)
        }
        return try {
            processCommand(args, currentDirectory)
        } catch (e: Exception) {
            CliResult.error(2, String.format("Error showing %s: %s", commandName, e.message))
        } finally {
            saveAll()
        }
    }