mirror of
https://github.com/pcvolkmer/osc-variant.git
synced 2025-04-19 11:46:50 +00:00
Change requirement string mapping to match Unterformular implementation
This commit is contained in:
parent
108aae329c
commit
21e31f35d1
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -268,7 +268,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "osc-variant"
|
||||
version = "0.4.0"
|
||||
version = "0.4.1"
|
||||
dependencies = [
|
||||
"clap",
|
||||
"clap_complete",
|
||||
|
@ -325,11 +325,10 @@ impl Requires for DataForm {
|
||||
.get_required_entries(all)
|
||||
.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()
|
||||
)),
|
||||
Requirement::PropertyCatalogue(_) => Some(inner_entry.to_string()),
|
||||
Requirement::ExternalPropertyCatalogue(_) => {
|
||||
Some(inner_entry.to_string())
|
||||
}
|
||||
_ => None,
|
||||
})
|
||||
.filter(Option::is_some)
|
||||
|
Loading…
x
Reference in New Issue
Block a user