mirror of
				https://github.com/Tyrrrz/CliFx.git
				synced 2025-10-25 15:19:17 +00:00 
			
		
		
		
	Refactor
This commit is contained in:
		| @@ -19,7 +19,7 @@ public class OptionMustHaveValidNameAnalyzerSpecs | ||||
|             public class MyCommand : ICommand | ||||
|             { | ||||
|                 [CommandOption("f")] | ||||
|                 public string Foo { get; set; } | ||||
|                 public string? Foo { get; init; } | ||||
|              | ||||
|                 public ValueTask ExecuteAsync(IConsole console) => default; | ||||
|             } | ||||
| @@ -40,7 +40,7 @@ public class OptionMustHaveValidNameAnalyzerSpecs | ||||
|             public class MyCommand : ICommand | ||||
|             { | ||||
|                 [CommandOption("1foo")] | ||||
|                 public string Foo { get; set; } | ||||
|                 public string? Foo { get; init; } | ||||
|              | ||||
|                 public ValueTask ExecuteAsync(IConsole console) => default; | ||||
|             } | ||||
| @@ -61,7 +61,7 @@ public class OptionMustHaveValidNameAnalyzerSpecs | ||||
|             public class MyCommand : ICommand | ||||
|             { | ||||
|                 [CommandOption("foo")] | ||||
|                 public string Foo { get; set; } | ||||
|                 public string? Foo { get; init; } | ||||
|              | ||||
|                 public ValueTask ExecuteAsync(IConsole console) => default; | ||||
|             } | ||||
| @@ -82,7 +82,7 @@ public class OptionMustHaveValidNameAnalyzerSpecs | ||||
|             public class MyCommand : ICommand | ||||
|             { | ||||
|                 [CommandOption('f')] | ||||
|                 public string Foo { get; set; } | ||||
|                 public string? Foo { get; init; } | ||||
|              | ||||
|                 public ValueTask ExecuteAsync(IConsole console) => default; | ||||
|             } | ||||
| @@ -102,7 +102,7 @@ public class OptionMustHaveValidNameAnalyzerSpecs | ||||
|             [Command] | ||||
|             public class MyCommand : ICommand | ||||
|             { | ||||
|                 public string Foo { get; set; } | ||||
|                 public string? Foo { get; init; } | ||||
|              | ||||
|                 public ValueTask ExecuteAsync(IConsole console) => default; | ||||
|             } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user