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

Function show_menu

archinstall/scripts/guided.py:28–49  ·  view source on GitHub ↗
(
	arch_config_handler: ArchConfigHandler,
	mirror_list_handler: MirrorListHandler,
)

Source from the content-addressed store, hash-verified

26
27
28def show_menu(
29 arch_config_handler: ArchConfigHandler,
30 mirror_list_handler: MirrorListHandler,
31) -> None:
32 upgrade = check_version_upgrade()
33 title_text = 'Archlinux'
34
35 if upgrade:
36 text = tr('New version available') + f': {upgrade}'
37 title_text += f' ({text})'
38
39 global_menu = GlobalMenu(
40 arch_config_handler.config,
41 mirror_list_handler,
42 arch_config_handler.args.skip_boot,
43 advanced=arch_config_handler.args.advanced,
44 title=title_text,
45 )
46
47 result: ArchConfig | None = tui.run(global_menu)
48 if result is None:
49 sys.exit(0)
50
51
52def perform_installation(

Callers 1

mainFunction · 0.70

Calls 5

check_version_upgradeFunction · 0.90
trFunction · 0.90
GlobalMenuClass · 0.90
exitMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected