forked from Plugin-JF-Onkostar/osc-variant
Show required dependencies not included in OSC file
This commit is contained in:
@@ -242,9 +242,10 @@ impl Requires for DataForm {
|
||||
.iter()
|
||||
.collect::<HashSet<_>>()
|
||||
.into_iter()
|
||||
.map(|entry| all.find_data_catalogue(entry.as_str()))
|
||||
.filter(Option::is_some)
|
||||
.map(|entry| Requirement::DataCatalogue(entry.unwrap()))
|
||||
.map(|entry| match all.find_data_catalogue(entry.as_str()) {
|
||||
Some(contained) => Requirement::DataCatalogue(contained),
|
||||
None => Requirement::ExternalDataCatalogue(entry.to_string()),
|
||||
})
|
||||
.collect::<Vec<_>>()
|
||||
}
|
||||
|
||||
@@ -261,6 +262,10 @@ impl Requires for DataForm {
|
||||
.iter()
|
||||
.map(|inner_entry| match inner_entry {
|
||||
Requirement::PropertyCatalogue(y) => Some(y.to_listed_string()),
|
||||
Requirement::ExternalPropertyCatalogue(name) => Some(format!(
|
||||
"Merkmalskatalog (-) '{}' - hier nicht enthalten",
|
||||
style(name).yellow()
|
||||
)),
|
||||
_ => None,
|
||||
})
|
||||
.filter(Option::is_some)
|
||||
@@ -274,6 +279,9 @@ impl Requires for DataForm {
|
||||
Some(format!(" + {}\n{}", x.to_listed_string(), inner))
|
||||
}
|
||||
}
|
||||
Requirement::ExternalDataCatalogue(_) => {
|
||||
Some(format!(" + {}\n", entry.to_string()))
|
||||
}
|
||||
_ => None,
|
||||
})
|
||||
.filter(Option::is_some)
|
||||
|
||||
Reference in New Issue
Block a user