Added a new console command

This commit is contained in:
Xertis 2024-06-15 09:48:08 +03:00 committed by GitHub
parent 9c911beec4
commit f8e17e720f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -13,6 +13,15 @@ function build_scheme(command)
return str
end
console.add_command(
"clear",
"Clears the console",
function ()
document = Document.new("core:console")
document.log.text = ""
end
)
console.add_command(
"help name:str=''",
"Show help infomation for the specified command",