query
On this page

mkEnableOption

lib.options.mkEnableOption

Docs pulled from | This Revision | about 12 hours ago


Creates an Option attribute set for a boolean value option i.e an option to be toggled on or off:

Inputs

name

Name for the created option

Examples

mkEnableOption usage example

mkEnableOption "foo"
=> { _type = "option"; default = false; description = "Whether to enable foo."; example = true; type = { ... }; }

Noogle also knows

Aliases