2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-03-13 18:00:41 +00:00
Hilbish/nature/commands/disown.lua
2022-05-21 11:38:26 -04:00

15 lines
273 B
Lua

local commander = require 'commander'
commander.register('disown', function(args)
local id = tonumber(args[1])
if not id then
print 'invalid id for job'
return 1
end
local ok = pcall(hilbish.jobs.disown, id)
if not ok then
print 'job does not exist'
end
end)