1
0
mirror of https://github.com/pcvolkmer/osc-variant.git synced 2025-04-19 19:56:50 +00:00

feat: embed UKR profile

This commit is contained in:
Paul-Christian Volkmer 2024-03-18 15:48:24 +01:00
parent 9c172c3189
commit 5110d78f62
2 changed files with 5 additions and 3 deletions

View File

@ -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`

View File

@ -38,6 +38,7 @@ impl Profile {
pub fn embedded_profile(name: &str) -> Result<Profile, String> {
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}'")),