Lines Matching +full:single +full:- +full:core
2 .\" SPDX-License-Identifier: BSD-2-Clause
36 It also contains definitions for the built-in menus, some of which are
58 key is itself a table, then each value in this table defines a single entry in
66 This function must return a table, each value of which defines a single entry
72 .Bl -tag -width disable-module_module -offset indent
96 .Ic core.MENU_SEPARATOR
102 A table of case-sensitive aliases for this menu entry.
112 .Ic core.MENU_SEPARATOR .
115 .Xr core.lua 8 .
117 .Bl -tag -width core.MENU_CAROUSEL_ENTRY -offset indent
118 .It Ic core.MENU_RETURN
127 .It Ic core.MENU_ENTRY
132 .It Ic core.MENU_SEPARATOR
136 .It Ic core.MENU_SUBMENU
142 .It Ic core.MENU_CAROUSEL_ENTRY
153 .Bl -tag -width menu.boot_environments -offset indent
161 Contains single and multi user boot options, as well as entries to access other
173 .Bd -literal -offset indent -compact
174 local core = require("core")
180 entry_type = core.MENU_ENTRY,
182 func = core.boot,
185 entry_type = core.MENU_CAROUSEL_ENTRY,
201 .Bd -literal -offset indent -compact
202 local core = require("core")
206 entry_type = core.MENU_ENTRY,
208 func = core.boot,
224 .Bd -literal -offset indent -compact
225 local core = require("core")
228 -- Fill in with vendor specific entries
237 entry_type = core.MENU_SUBMENU,
255 .Bd -literal -offset indent -compact
256 -- This is a silly example that rotates local_option through the values
257 -- 0 to 4. local_option would still need to be used elsewhere.
260 -- The `entries` of a menu may either be a table or a function. In this
261 -- example we're augmenting a menu that just has a static table, but if we
262 -- wanted to be more robust then we would need to instead check the type
263 -- of `stock_options` here to determine our next move.
264 --
265 -- If `entries` is a table, then the stock menu system won't be changing it
266 -- so we can just add our menu option as we do below.
267 --
268 -- If `entries` is a function, then we would need to provide a new function to
269 -- replace `entries` that does a core.deepCopyTable() of the result and adds
270 -- the below item to it. The deep copy is necessary to avoid duplicating our
271 -- new menu item and allowing the menu to alter its behavior however it pleases.
274 entry_type = core.MENU_ENTRY,
287 .Xr core.lua 8 ,