pub fn write_json_atomic_pretty<T, P>(path: P, value: &T) -> Result<()>Expand description
Like write_json_atomic but pretty-prints the JSON.
Used for credential write-back so a refreshed token file keeps the human-readable 2-space layout the provider CLIs write, rather than being collapsed onto one line.
ยงErrors
Returns an error if the parent directory cannot be created, the temp file cannot be written, or the final rename fails.