pub fn value_to_exit_code(value: &Value) -> Result<i64>Expand description
Convert a Value to its string representation for interpolation.
Coerce a Value into an exit code (i64) for return/exit.
Bash semantics: return $(echo 42) works because the captured text “42”
is parsed as an integer. Non-numeric strings, Null, Json, and Blob
are an error — silently coercing to 0 would mask real bugs.