diff options
| author | Kyle Evans <kevans@FreeBSD.org> | 2026-06-04 13:57:16 +0000 |
|---|---|---|
| committer | Kyle Evans <kevans@FreeBSD.org> | 2026-06-04 13:59:49 +0000 |
| commit | c7ff706b31c22f10c2403869c46b443448da3e08 (patch) | |
| tree | 5b74c0966b93542c31355f66d3466de169fd75a2 /stand/lua/cli.lua | |
| parent | 4f7d987015ddf92ec6a56c7573132a8548474b78 (diff) | |
Diffstat (limited to 'stand/lua/cli.lua')
| -rw-r--r-- | stand/lua/cli.lua | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/stand/lua/cli.lua b/stand/lua/cli.lua index dda8c3da4c89..fe358b7fd7ab 100644 --- a/stand/lua/cli.lua +++ b/stand/lua/cli.lua @@ -160,6 +160,29 @@ cli["disable-module"] = function(...) setModule(argv[1], false) end +cli['be-list'] = function(...) + local _, argv = cli.arguments(...) + if #argv ~= 0 then + print("usage error: be-list") + return + end + + for _, bootenv in core.bootenvIter() do + print(bootenv) + end +end + +cli['be-switch'] = function(...) + local _, argv = cli.arguments(...) + if #argv == 0 then + print("usage error: be-switch beName") + return + end + + local env = argv[1] + core.switchBE(env) +end + cli["toggle-module"] = function(...) local _, argv = cli.arguments(...) if #argv == 0 then |
