Skip to main content

Module persona

Module persona 

Source

Functions§

check_payload
In-process variant of harn persona check --json. Returns the JSON payload the CLI would print on success; structured validation errors surface in Err so callers can format or assert on them.
disable_payload
In-process variant of harn persona disable.
inspect_payload
In-process variant of harn persona inspect <name> --json.
list_payload
In-process variant of harn persona list --json used by the binary’s dispatcher and by integration tests that want to assert on the structured payload without spawning a subprocess.
pause_payload
In-process variant of harn persona pause.
resume_payload
In-process variant of harn persona resume.
spend_payload
In-process variant of harn persona spend.
status_payload
In-process variant of harn persona status.
tick_payload
In-process variant of harn persona tick. Returns the run receipt that the CLI would otherwise print to stdout.
trigger_payload
In-process variant of harn persona trigger. metadata_pairs accepts the same KEY=VALUE strings the CLI does.