MCPcopy Index your code
hub / github.com/archlinux/archinstall / show_menu

Function show_menu

examples/only_hd_installation.py:16–27  ·  view source on GitHub ↗
(arch_config_handler: ArchConfigHandler)

Source from the content-addressed store, hash-verified

14
15
16def show_menu(arch_config_handler: ArchConfigHandler) -> None:
17 global_menu = GlobalMenu(arch_config_handler.config)
18 global_menu.disable_all()
19
20 global_menu.set_enabled('archinstall_language', True)
21 global_menu.set_enabled('disk_config', True)
22 global_menu.set_enabled('swap', True)
23 global_menu.set_enabled('__config__', True)
24
25 result: ArchConfig | None = tui.run(global_menu)
26 if result is None:
27 sys.exit(0)
28
29
30def perform_installation(arch_config_handler: ArchConfigHandler) -> None:

Callers 1

mainFunction · 0.70

Calls 5

GlobalMenuClass · 0.90
disable_allMethod · 0.80
set_enabledMethod · 0.80
exitMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected