feat: load ExecPolicyManager from ConfigLayerStack

This commit is contained in:
Michael Bolin
2025-12-22 16:44:24 -08:00
parent 14dbd0610a
commit d78ca23edc
6 changed files with 172 additions and 19 deletions
+7
View File
@@ -43,6 +43,13 @@ impl AbsolutePathBuf {
Self::resolve_path_against_base(path, &self.0)
}
pub fn parent(&self) -> Option<Self> {
self.0.parent().map(|p| {
#[expect(clippy::expect_used)]
Self::from_absolute_path(p).expect("parent of AbsolutePathBuf must be absolute")
})
}
pub fn as_path(&self) -> &Path {
&self.0
}