Skip to main content

Module state

Module state 

Source
Expand description

Global state management for command-stream

This module handles signal handlers, process tracking, and cleanup, similar to the JavaScript $.state.mjs module.

Structs§

GlobalState
Global state for the command-stream library
ShellSettings
Shell settings for controlling execution behavior

Functions§

get_shell_settings
Get current shell settings
global_state
Get the global state instance
reset_global_state
Reset the global state (for testing)
set_shell_option
Enable a shell option globally
unset_shell_option
Disable a shell option globally