mirror of
				https://github.com/Nioux/AideDeJeu.git
				synced 2025-10-30 23:16:09 +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("o : check orphan links"); | ||||||
|                 Console.WriteLine("p : test pdf"); |                 Console.WriteLine("p : test pdf"); | ||||||
|                 Console.WriteLine("h : extract html"); |                 Console.WriteLine("h : extract html"); | ||||||
|  |                 Console.WriteLine("y : extract yaml"); | ||||||
|                 Console.WriteLine("q : quitter"); |                 Console.WriteLine("q : quitter"); | ||||||
|                 var key = Console.ReadKey(true); |                 var key = Console.ReadKey(true); | ||||||
|                 switch (key.KeyChar) |                 switch (key.KeyChar) | ||||||
|  | @ -381,12 +382,27 @@ namespace AideDeJeuCmd | ||||||
|                         await ExtractHtmlAsync(); |                         await ExtractHtmlAsync(); | ||||||
|                         Console.WriteLine("/ extract html"); |                         Console.WriteLine("/ extract html"); | ||||||
|                         break; |                         break; | ||||||
|  |                     case 'y': | ||||||
|  |                         Console.WriteLine("> extract yaml"); | ||||||
|  |                         await ExtractYamlAsync(); | ||||||
|  |                         Console.WriteLine("/ extract yaml"); | ||||||
|  |                         break; | ||||||
|                     case 'q': |                     case 'q': | ||||||
|                         return; |                         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() |         static async Task ExtractHtmlAsync() | ||||||
|         { |         { | ||||||
|             using (var output = new StreamWriter(@"..\..\..\..\..\Data\tome_of_beasts.md", false, Encoding.UTF8)) |             using (var output = new StreamWriter(@"..\..\..\..\..\Data\tome_of_beasts.md", false, Encoding.UTF8)) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Yan Maniez
						Yan Maniez