[go: up one dir, main page]

state_dir

Function state_dir 

Source
pub fn state_dir() -> Result<PathBuf>
Expand description

Get the state directory for persistent cuenv data.

State data includes:

  • Hook execution state (state/)
  • Approval records (approved.json)

Resolution order:

  1. CUENV_STATE_DIR environment variable
  2. Platform state directory + /cuenv

ยงErrors

Returns an error if the home directory cannot be determined.