|
@@ -39,11 +39,11 @@ namespace Usm {
|
|
cfg.map<string>("name", o => o.name, (o, v) => o.name = v);
|
|
cfg.map<string>("name", o => o.name, (o, v) => o.name = v);
|
|
cfg.map<string>("version", o => o.version.to_string(), (o, v) => o.version = new Version.from_string(v));
|
|
cfg.map<string>("version", o => o.version.to_string(), (o, v) => o.version = new Version.from_string(v));
|
|
cfg.map<string>("summary", o => o.summary, (o, v) => o.summary = v);
|
|
cfg.map<string>("summary", o => o.summary, (o, v) => o.summary = v);
|
|
- cfg.map_many_with<Licence>("licences", o => o.licences, (o, v) => o.licences = v.to_vector(), Licence.get_mapper());
|
|
|
|
|
|
+ cfg.map_property_groups_with<Licence>("licences", o => o.licences, (o, v) => o.licences = v.to_vector(), Licence.get_mapper());
|
|
cfg.map<Properties>("provides", o => o.map_from_provides_dict(), (o, v) => o.build_provides_dict(v));
|
|
cfg.map<Properties>("provides", o => o.map_from_provides_dict(), (o, v) => o.build_provides_dict(v));
|
|
- cfg.map_with<Dependencies>("depends", o => o.dependencies, (o, v) => o.dependencies = v, Dependencies.get_mapper());
|
|
|
|
- cfg.map_with<Executables>("execs", o => o.executables, (o, v) => o.executables = v, Executables.get_mapper());
|
|
|
|
- cfg.map_many<string>("flags", o => o.flags.select<string>(f => f.to_string()), (o, v) => o.flags = v.try_select<ManifestFlag>(f => ManifestFlag.from_string(f)).unwrap_to_set());
|
|
|
|
|
|
+ cfg.map_properties_with<Dependencies>("depends", o => o.dependencies, (o, v) => o.dependencies = v, Dependencies.get_mapper());
|
|
|
|
+ cfg.map_properties_with<Executables>("execs", o => o.executables, (o, v) => o.executables = v, Executables.get_mapper());
|
|
|
|
+ cfg.map_many<string>("flags", o => o.flags.select<string>(f => f.to_string()), (o, v) => o.flags = v.try_select<ManifestFlag>(f => ManifestFlag.from_string(f)).to_set());
|
|
cfg.map<string>("md", o => o.markdown_path, (o, v) => o.markdown_path = v, false);
|
|
cfg.map<string>("md", o => o.markdown_path, (o, v) => o.markdown_path = v, false);
|
|
cfg.map<string>("url", o => o.url, (o, v) => o.url = v, false);
|
|
cfg.map<string>("url", o => o.url, (o, v) => o.url = v, false);
|
|
cfg.map_many<string>("screenshots", o => o.screenshot_paths, (o, v) => o.screenshot_paths = v.to_vector(), false);
|
|
cfg.map_many<string>("screenshots", o => o.screenshot_paths, (o, v) => o.screenshot_paths = v.to_vector(), false);
|