diff options
Diffstat (limited to 'src/main/kotlin/moe/nea89/website/index.kt')
-rw-r--r-- | src/main/kotlin/moe/nea89/website/index.kt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/kotlin/moe/nea89/website/index.kt b/src/main/kotlin/moe/nea89/website/index.kt index d347364..edc1add 100644 --- a/src/main/kotlin/moe/nea89/website/index.kt +++ b/src/main/kotlin/moe/nea89/website/index.kt @@ -74,7 +74,8 @@ fun main() { console.rerender() } } - else -> "is a ${file.fileType}" + + else -> console.addLine("ls: is a ${file.fileType}") } }) console.registerCommand(command("color") { @@ -100,6 +101,7 @@ fun main() { is KFile.Image -> console.addLine(document.create.p { img(src = file.url) }) + is KFile.Download -> { val link = document.create.a(file.url) link.download = file.name.last() |