pub trait ConfigurationFile<T> {
    const FILENAME: &'static str;

    fn from_directory(monorepo_root: &Path, directory: &Path) -> Result<T>;
    fn directory(&self) -> PathBuf;
    fn path(&self) -> PathBuf;
    fn write(&self) -> Result<()>;
}
Expand description

Configuration file for some component of the monorepo.

Required Associated Constants§

Basename of the configuration file.

Required Methods§

Create an instance of this configuration file by reading the specified file from this directory on disk.

Relative path to directory containing this configuration file, from monorepo root.

Relative path to this configuration file from the monorepo root.

Write this configuration file to disk.

Implementors§