mirror of
				https://github.com/Tyrrrz/CliFx.git
				synced 2025-10-25 15:19:17 +00:00 
			
		
		
		
	Refactor (#94)
This commit is contained in:
		
							
								
								
									
										24
									
								
								CliFx.Benchmarks/Benchmarks.Cocona.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								CliFx.Benchmarks/Benchmarks.Cocona.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,24 @@ | ||||
| using BenchmarkDotNet.Attributes; | ||||
| using Cocona; | ||||
|  | ||||
| namespace CliFx.Benchmarks | ||||
| { | ||||
|     public partial class Benchmarks | ||||
|     { | ||||
|         public class CoconaCommand | ||||
|         { | ||||
|             public void Execute( | ||||
|                 [Option("str", new []{'s'})] | ||||
|                 string? strOption, | ||||
|                 [Option("int", new []{'i'})] | ||||
|                 int intOption, | ||||
|                 [Option("bool", new []{'b'})] | ||||
|                 bool boolOption) | ||||
|             { | ||||
|             } | ||||
|         } | ||||
|  | ||||
|         [Benchmark(Description = "Cocona")] | ||||
|         public void ExecuteWithCocona() => CoconaApp.Run<CoconaCommand>(Arguments); | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user