From 5110d78f62c96b32528bb5f239aa741ce192d3f6 Mon Sep 17 00:00:00 2001 From: Paul-Christian Volkmer Date: Mon, 18 Mar 2024 15:48:24 +0100 Subject: [PATCH] feat: embed UKR profile --- README.md | 7 ++++--- src/profile.rs | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a8b0808..da1ff41 100644 --- a/README.md +++ b/README.md @@ -117,9 +117,10 @@ Ohne eine Angabe der Ausgabedatei wird auf die Standardausgabe ausgegeben. Die im Ordner [`examples/`](/examples) enthaltenen Profile für Standorte sind in der ausführbaren Anwendung enthalten und die Dateien müssen nicht explizit als Datei vorliegen: -* `--profile examples/dnpm-ukm.yml` => `--profile UKM` -* `--profile examples/dnpm-ukw.yml` => `--profile UKW` -* `--profile examples/dnpm-umg.yml` => `--profile UMG` +* `--profile examples/dnpm-ukm.yml` => `--profile UKM` für **Marburg** +* `--profile examples/dnpm-ukr.yml` => `--profile UKR` für **Regensburg** +* `--profile examples/dnpm-ukw.yml` => `--profile UKW` für **Würzburg** +* `--profile examples/dnpm-umg.yml` => `--profile UMG` für **Göttingen** #### Unterbefehl `unzip-osb` diff --git a/src/profile.rs b/src/profile.rs index f26d01e..88f947e 100644 --- a/src/profile.rs +++ b/src/profile.rs @@ -38,6 +38,7 @@ impl Profile { pub fn embedded_profile(name: &str) -> Result { let s = match name { "UKM" => include_str!("../examples/dnpm-ukm.yml"), + "UKR" => include_str!("../examples/dnpm-ukr.yml"), "UKW" => include_str!("../examples/dnpm-ukw.yml"), "UMG" => include_str!("../examples/dnpm-umg.yml"), _ => return Err(format!("Not an embedded profile: '{name}'")),