(path: &std::path::Path, contents: &str)
| 805 | use crate::config::Config; |
| 806 | |
| 807 | fn write(path: &std::path::Path, contents: &str) { |
| 808 | if let Some(parent) = path.parent() { |
| 809 | fs::create_dir_all(parent).expect("mkdir"); |
| 810 | } |
| 811 | fs::write(path, contents).expect("write"); |
| 812 | } |
| 813 | |
| 814 | fn config_for(dir: &std::path::Path) -> Config { |
| 815 | Config::new_with_codex_data_dir(dir.to_path_buf(), dir.join("codex")).expect("config") |
no outgoing calls