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

Method user_credentials_to_json

archinstall/lib/args.py:388–393  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

386 return json.dumps(python_dict, indent=4, sort_keys=True)
387
388 def user_credentials_to_json(self) -> str:
389 cfg = self.unsafe_config()
390
391 adapter = TypeAdapter(dict[ArchConfigType, Any])
392 python_dict = adapter.dump_python(cfg)
393 return json.dumps(python_dict, indent=4, sort_keys=True)
394
395 def write_debug(self) -> None:
396 debug(' -- Chosen configuration --')

Callers 2

save_user_credsMethod · 0.95
previewFunction · 0.80

Calls 1

unsafe_configMethod · 0.95

Tested by

no test coverage detected