xonsh.webconfig.file_writes
functions to update rc files
-
xonsh.webconfig.file_writes.append_to_list(value: list[str], existing: str) → str[source]
-
xonsh.webconfig.file_writes.config_to_xonsh(config: dict, prefix='# XONSH WEBCONFIG START', current_lines: Iterable[str] = (), suffix='# XONSH WEBCONFIG END')[source]
Turns config dict into xonsh code (str).
-
xonsh.webconfig.file_writes.insert_into_xonshrc(config: dict, xonshrc=None, prefix='# XONSH WEBCONFIG START', suffix='# XONSH WEBCONFIG END')[source]
Places a config dict into the xonshrc.
-
xonsh.webconfig.file_writes.write_value(value: str, _) → str[source]