MCPcopy Index your code
hub / github.com/Commit-Boost/commit-boost-client / get_log_volume

Function get_log_volume

crates/cli/src/docker_init.rs:603–612  ·  view source on GitHub ↗
(config: &LogsSettings, module_id: &str)

Source from the content-addressed store, hash-verified

601// }
602
603fn get_log_volume(config: &LogsSettings, module_id: &str) -> Option<Volumes> {
604 config.file.enabled.then_some({
605 let p = config.file.dir_path.join(module_id.to_lowercase());
606 Volumes::Simple(format!(
607 "{}:{}",
608 p.to_str().expect("could not convert pathbuf to str"),
609 LOGS_DIR_DEFAULT
610 ))
611 })
612}
613
614/// Formats as a comma separated list of key=value
615fn format_comma_separated(map: &IndexMap<ModuleId, String>) -> String {

Callers 1

handle_docker_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected