use strum::EnumIter;
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, EnumIter)]
pub enum PackageKind {
Cargo,
}
impl PackageKind {
pub fn file_name(&self) -> &'static str {
match self {
Self::Cargo => "Cargo.toml",
}
}
pub(crate) fn lockfile_name(&self) -> Option<&'static str> {
match self {
Self::Cargo => Some("Cargo.lock"),
}
}
}