MCPcopy Create free account
hub / github.com/archlinux/archinstall / _get_column_keys

Method _get_column_keys

archinstall/tui/components.py:1062–1074  ·  view source on GitHub ↗
(self, items: list[MenuItem])

Source from the content-addressed store, hash-verified

1060 header.display = not is_loading
1061
1062 def _get_column_keys(self, items: list[MenuItem]) -> list[str]:
1063 all_keys: list[str] = []
1064 for item in items:
1065 if item.value:
1066 all_keys.extend(item.value.table_data().keys())
1067
1068 # Create unique list while preserving order
1069 unique_keys: list[str] = list(dict.fromkeys(all_keys))
1070
1071 if self._multi:
1072 unique_keys.insert(0, ' ')
1073
1074 return unique_keys
1075
1076 def _put_data_to_table(self, table: DataTable[ValueT], group: MenuItemGroup) -> None:
1077 items = group.items

Callers 1

_put_data_to_tableMethod · 0.95

Calls 1

table_dataMethod · 0.45

Tested by

no test coverage detected