2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-04-21 04:53:24 +00:00

feat: add clear and exec command

This commit is contained in:
TorchedSammy 2022-09-18 08:30:45 -04:00
parent e5c8e5eaff
commit 9eaa8ebe17
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,7 @@
local ansikit = require 'ansikit'
local commander = require 'commander'
commander.register('clear', function()
ansikit.clear(true)
ansikit.cursorTo(0, 0)
end)

5
nature/commands/exec.lua Normal file
View File

@ -0,0 +1,5 @@
local commander = require 'commander'
commander.register('exec', function(args)
hilbish.exec(args[1])
end)