2
2
鏡像自 https://github.com/Hilbis/Hilbish synced 2025-06-30 16:22:03 +00:00

feat: add clear and exec command

This commit is contained in:
TorchedSammy 2022-09-18 08:30:45 -04:00
父節點 e5c8e5eaff
當前提交 9eaa8ebe17
簽署人: sammyette
GPG 金鑰 ID: 904FC49417B44DCD
共有 2 個檔案被更改,包括 12 行新增0 行删除

查看文件

@ -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
查看文件

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