forked from kemitix/git-next
Paul Campbell
341dc97a51
Repository is now behind an enum to allow selection of a mock Repsitory for use in tests.
9 lines
294 B
Rust
9 lines
294 B
Rust
/// The alias of a repo
|
|
/// This is the alias for the repo within `git-next-server.toml`
|
|
#[derive(Clone, Default, Debug, PartialEq, Eq, Hash, derive_more::Display)]
|
|
pub struct RepoAlias(String);
|
|
impl RepoAlias {
|
|
pub fn new(str: impl Into<String>) -> Self {
|
|
Self(str.into())
|
|
}
|
|
}
|