refactor(#2285): inline remaining 1:1 path wrappers (meta_dir, marker fns, host_conf_path)
This commit is contained in:
parent
cfb84b420a
commit
556a213320
11 changed files with 39 additions and 72 deletions
|
|
@ -28,7 +28,7 @@ const CAPABILITIES_FILE: &str = "capabilities.json";
|
|||
|
||||
#[must_use]
|
||||
pub fn capabilities_path() -> PathBuf {
|
||||
crate::meta::meta_dir().join(CAPABILITIES_FILE)
|
||||
crate::paths::meta_root().join(CAPABILITIES_FILE)
|
||||
}
|
||||
|
||||
/// Read the per-agent capability map. Returns an empty map when the
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ const TOOL_GROUPS_FILE: &str = "tool-groups.json";
|
|||
|
||||
#[must_use]
|
||||
pub fn tool_groups_path() -> PathBuf {
|
||||
crate::meta::meta_dir().join(TOOL_GROUPS_FILE)
|
||||
crate::paths::meta_root().join(TOOL_GROUPS_FILE)
|
||||
}
|
||||
|
||||
/// Read the per-agent tool-group map. Returns an empty map when the
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ const TOPOLOGY_FILE: &str = "topology.json";
|
|||
|
||||
#[must_use]
|
||||
pub fn topology_path() -> PathBuf {
|
||||
crate::meta::meta_dir().join(TOPOLOGY_FILE)
|
||||
crate::paths::meta_root().join(TOPOLOGY_FILE)
|
||||
}
|
||||
|
||||
/// Snapshot of the topology map. Read on every `container_view::build_all`
|
||||
|
|
@ -451,7 +451,7 @@ const ROLES_FILE: &str = "roles.json";
|
|||
|
||||
#[must_use]
|
||||
pub fn roles_path() -> std::path::PathBuf {
|
||||
crate::meta::meta_dir().join(ROLES_FILE)
|
||||
crate::paths::meta_root().join(ROLES_FILE)
|
||||
}
|
||||
|
||||
/// Read the roles map from disk. Returns an empty map when absent or
|
||||
|
|
|
|||
Loading…
Reference in a new issue