Skip to main content

Module persistence

Module persistence 

Source
Expand description

Bash state persistence module

Provides disk persistence for BashState, compatible with WCGW Python implementation. State is stored in ~/.local/share/wcgw/bash_state/ as JSON files.

Structs§

BashCommandModeSnapshot
BashStateSnapshot
Snapshot of BashState that can be serialized to disk
FileEditModeSnapshot
FileWhitelistDataSnapshot
WriteIfEmptyModeSnapshot

Enums§

AllowedCommandsSnapshot
AllowedGlobsSnapshot

Functions§

delete_bash_state
get_state_dir
load_bash_state
load_bash_state_from_path
save_bash_state
save_bash_state_to_path