summaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea89/website/index.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/moe/nea89/website/index.kt')
-rw-r--r--src/main/kotlin/moe/nea89/website/index.kt4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/kotlin/moe/nea89/website/index.kt b/src/main/kotlin/moe/nea89/website/index.kt
index 4eea755..d347364 100644
--- a/src/main/kotlin/moe/nea89/website/index.kt
+++ b/src/main/kotlin/moe/nea89/website/index.kt
@@ -77,6 +77,9 @@ fun main() {
else -> "is a ${file.fileType}"
}
})
+ console.registerCommand(command("color") {
+ console.addLine("This is a ", red("red"), " word: ", green("1.0"), " ", blue("BLUUEEE"))
+ })
console.registerCommand(command("cat") {
val fa = requireFileAccessor()
val path = when (args.size) {
@@ -103,6 +106,7 @@ fun main() {
document.body!!.append(link)
link.click()
link.remove()
+ console.addLine("Download started")
}
}
})