cedric
08/01/2019, 7:59 PMfun gitComplete(line: String, cursorIndex: Int): List<String> {
val words = line.split(" ")
if (words[0] == "git") return listOf("commit", "status")
else return emptyList()
}
if (args.size == 2) gitComplete(args[0], args[1].toInt())
else null
yschimke
08/01/2019, 8:13 PM