Skip to content

feat: allow hilbish exits to be interrupted #298

Open
@sammy-ette

Description

@sammy-ette

if background jobs are being run, the user should be reminded and stopped from exiting the shell.
requires #297

simple implementation code:

function hilbish.exit()
	local lingerers = bait.throw 'hilbish.exit'
	if #lingerers == 0 then
		os.exit(0)
	end

	for _, linger in pairs(lingerers)
		print('Woah! Can\'t leave this flower field yet. Reason: %s', linger.reason)
	end
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions