MCPcopy Create free account
hub / github.com/consensus-shipyard/ipc / export_env

Function export_env

fendermint/testing/materializer/src/docker/node.rs:650–657  ·  view source on GitHub ↗
(file_path: impl AsRef<Path>, env: &EnvMap)

Source from the content-addressed store, hash-verified

648}
649
650fn export_env(file_path: impl AsRef<Path>, env: &EnvMap) -> anyhow::Result<()> {
651 let env = env
652 .iter()
653 .map(|(k, v)| format!("{k}={v}"))
654 .collect::<Vec<_>>();
655
656 export_file(file_path, env.join("\n"))
657}
658
659fn read_file(file_path: impl AsRef<Path>) -> anyhow::Result<String> {
660 fs::read_to_string(&file_path)

Callers 2

get_or_createMethod · 0.85
start_all_containersMethod · 0.85

Calls 3

export_fileFunction · 0.85
iterMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected