mirror of
https://github.com/pcvolkmer/osc-variant.git
synced 2025-04-20 20:26: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]]
|
[[package]]
|
||||||
name = "osc-variant"
|
name = "osc-variant"
|
||||||
version = "0.4.0"
|
version = "0.4.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"clap",
|
"clap",
|
||||||
"clap_complete",
|
"clap_complete",
|
||||||
|
@ -325,11 +325,10 @@ impl Requires for DataForm {
|
|||||||
.get_required_entries(all)
|
.get_required_entries(all)
|
||||||
.iter()
|
.iter()
|
||||||
.map(|inner_entry| match inner_entry {
|
.map(|inner_entry| match inner_entry {
|
||||||
Requirement::PropertyCatalogue(y) => Some(y.to_listed_string()),
|
Requirement::PropertyCatalogue(_) => Some(inner_entry.to_string()),
|
||||||
Requirement::ExternalPropertyCatalogue(name) => Some(format!(
|
Requirement::ExternalPropertyCatalogue(_) => {
|
||||||
"Merkmalskatalog (-) '{}' - hier nicht enthalten",
|
Some(inner_entry.to_string())
|
||||||
style(name).yellow()
|
}
|
||||||
)),
|
|
||||||
_ => None,
|
_ => None,
|
||||||
})
|
})
|
||||||
.filter(Option::is_some)
|
.filter(Option::is_some)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user