mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-17 22:14:05 +09:00
Echo().execute(message) is now just Echo(message)
Former-commit-id: 851e141fc91b170190d6027f42f59906dda0f31f Former-commit-id: 03dbb9da1788e1c50e84ae33d95f76194ad9a08d
This commit is contained in:
@@ -16,15 +16,15 @@ internal object CatStdout : ConsoleCommand {
|
||||
}
|
||||
|
||||
try {
|
||||
Files.lines(FileSystems.getDefault().getPath(args[1])).forEach({ Echo.execute(it) })
|
||||
Files.lines(FileSystems.getDefault().getPath(args[1])).forEach({ Echo(it) })
|
||||
}
|
||||
catch (e: IOException) {
|
||||
Echo.execute("CatStdout: could not read file -- IOException")
|
||||
Echo("CatStdout: could not read file -- IOException")
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
override fun printUsage() {
|
||||
Echo.execute("usage: cat 'path/to/text/file")
|
||||
Echo("usage: cat 'path/to/text/file")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user