git_next_core/config/forge_alias.rs
1use serde::Serialize;
2
3use crate::newtype;
4
5newtype!(
6 ForgeAlias,
7 String,
8 Hash,
9 PartialOrd,
10 Ord,
11 derive_more::Display,
12 Default,
13 Serialize,
14 "The name of a Forge to connect to"
15);
16impl From<&ForgeAlias> for std::path::PathBuf {
17 fn from(value: &ForgeAlias) -> Self {
18 Self::from(&value.0)
19 }
20}