Skip to content
Back to top
View this page
Edit this page

# xonsh.webconfig.file_writes

functions to update rc files

xonsh.webconfig.file_writes.append_to_list(value: list[str], existing: str) → str

xonsh.webconfig.file_writes.config_to_xonsh(config: dict, prefix='# XONSH WEBCONFIG START', current_lines: Iterable[str] = (), suffix='# XONSH WEBCONFIG END')

  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')

  Places a config dict into the xonshrc.

xonsh.webconfig.file_writes.write_value(value: str, _) → str