2024-05-11 19:46:20 +01:00
|
|
|
use std::path::PathBuf;
|
|
|
|
|
2024-06-08 15:06:34 +01:00
|
|
|
use derive_more::{AsRef, Constructor, Display};
|
|
|
|
|
2024-05-11 19:46:20 +01:00
|
|
|
/// The name of a Forge to connect to
|
2024-06-08 15:06:34 +01:00
|
|
|
#[derive(Clone, Default, Debug, Hash, PartialEq, Eq, Constructor, Display, AsRef)]
|
2024-05-29 19:22:05 +01:00
|
|
|
pub struct ForgeAlias(String);
|
|
|
|
impl From<&ForgeAlias> for PathBuf {
|
|
|
|
fn from(value: &ForgeAlias) -> Self {
|
2024-05-11 19:46:20 +01:00
|
|
|
Self::from(&value.0)
|
|
|
|
}
|
|
|
|
}
|