mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Modify commands to report errors to the IDEA plug-in.
This commit is contained in:
parent
806ca59f97
commit
ce435adf25
7 changed files with 68 additions and 33 deletions
|
@ -17,7 +17,7 @@ interface ICommand {
|
|||
*/
|
||||
fun run(sender: ICommandSender, received: JsonObject)
|
||||
|
||||
fun toCommandData(data: String) = CommandData(name, data)
|
||||
fun toCommandData(data: String, error: String? = null) = CommandData(name, data, error)
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
package com.beust.kobalt.internal.remote
|
||||
|
||||
import com.beust.kobalt.misc.log
|
||||
import com.google.gson.Gson
|
||||
import com.google.gson.JsonObject
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue