You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
485 B
Lua
28 lines
485 B
Lua
local silo = require 'silo'
|
|
|
|
local function missing(name)
|
|
error("config value for `" .. name .. "` is missing")
|
|
end
|
|
|
|
local function before_apply_all()
|
|
local cfg = silo.config
|
|
|
|
if not cfg.environment then
|
|
missing('environment')
|
|
end
|
|
if not cfg.username then
|
|
missing('username')
|
|
end
|
|
if not cfg.wezterm.font_size then
|
|
missing('wezterm.font_size')
|
|
end
|
|
if not cfg.modules then
|
|
missing('modules')
|
|
end
|
|
end
|
|
|
|
|
|
return {
|
|
before_apply_all = before_apply_all
|
|
}
|