mirror of
https://github.com/Nioux/AideDeJeu.git
synced 2025-10-29 14:35:45 +00:00
Test yaml
This commit is contained in:
parent
4c6d2563cd
commit
369381f5b9
1 changed files with 16 additions and 0 deletions
|
|
@ -357,6 +357,7 @@ namespace AideDeJeuCmd
|
|||
Console.WriteLine("o : check orphan links");
|
||||
Console.WriteLine("p : test pdf");
|
||||
Console.WriteLine("h : extract html");
|
||||
Console.WriteLine("y : extract yaml");
|
||||
Console.WriteLine("q : quitter");
|
||||
var key = Console.ReadKey(true);
|
||||
switch (key.KeyChar)
|
||||
|
|
@ -381,12 +382,27 @@ namespace AideDeJeuCmd
|
|||
await ExtractHtmlAsync();
|
||||
Console.WriteLine("/ extract html");
|
||||
break;
|
||||
case 'y':
|
||||
Console.WriteLine("> extract yaml");
|
||||
await ExtractYamlAsync();
|
||||
Console.WriteLine("/ extract yaml");
|
||||
break;
|
||||
case 'q':
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static async Task ExtractYamlAsync()
|
||||
{
|
||||
var deserializer = new YamlDotNet.Serialization.Deserializer();
|
||||
using (var reader = new StreamReader(@"..\..\..\..\..\Ignore\Index Bestiaires H&D.yaml"))
|
||||
{
|
||||
var truc = deserializer.Deserialize(reader);
|
||||
Debug.WriteLine(true);
|
||||
}
|
||||
}
|
||||
|
||||
static async Task ExtractHtmlAsync()
|
||||
{
|
||||
using (var output = new StreamWriter(@"..\..\..\..\..\Data\tome_of_beasts.md", false, Encoding.UTF8))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue