com.baulsupp.oksocial.output.OutputHandler.kt Maven / Gradle / Ivy
package com.baulsupp.oksocial.output
interface OutputHandler {
suspend fun showOutput(response: R)
suspend fun showError(message: String? = null, e: Throwable? = null) {
if (message != null) {
System.err.println(message)
}
e?.printStackTrace()
}
suspend fun openLink(url: String) {
System.err.println(url)
}
fun info(message: String) {
println(message)
}
}