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

Method preview_text

archinstall/default_profiles/profile.py:187–200  ·  view source on GitHub ↗

Override this method to provide a preview text for the profile

(self)

Source from the content-addressed store, hash-verified

185 return self._display_server
186
187 def preview_text(self) -> str:
188 """
189 Override this method to provide a preview text for the profile
190 """
191 if self.is_desktop_type_profile():
192 if self._display_server:
193 text = tr('Environment type: {} {}').format(self._display_server.value, self.profile_type.value)
194 else:
195 text = tr('Environment type: {}').format(self.profile_type.value)
196 if packages := self.packages_text():
197 text += f'\n{packages}'
198 return text
199
200 return self.packages_text()
201
202 def packages_text(self, include_sub_packages: bool = False) -> str:
203 packages = set()

Callers 2

do_on_selectMethod · 0.80
do_on_selectMethod · 0.80

Calls 4

packages_textMethod · 0.95
trFunction · 0.90
formatMethod · 0.80

Tested by

no test coverage detected