lune 0.2.0

A Luau script runner
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
local VALID_STYLES = { "bold", "dim" }
local INVALID_STYLES = { "", "*bold*", "dimm", "megabright", "cheerful", "sad", " " }

for _, style in VALID_STYLES do
	if not pcall(console.setStyle, style :: any) then
		error(string.format("Setting style failed for style '%s'", style))
	end
end

for _, style in INVALID_STYLES do
	if pcall(console.setStyle, style :: any) then
		console.resetStyle()
		error(string.format("Setting style should have failed for style '%s' but succeeded", style))
	end
end