koala-core 1.0.4

Shared types, invariant evaluator, and primitives for the koala framework.
Documentation
use std::path::{Path, PathBuf};

#[non_exhaustive]
#[derive(Debug, Clone)]
pub struct Context {
    pub repo_root: PathBuf,
}

impl Context {
    pub fn new(repo_root: impl Into<PathBuf>) -> Self {
        Self {
            repo_root: repo_root.into(),
        }
    }

    pub fn root(&self) -> &Path {
        &self.repo_root
    }
}