mirror of
				https://github.com/nsnail/spectre.console.git
				synced 2025-11-01 01:25:27 +08:00 
			
		
		
		
	Add global usings (#668)
* Use global usings * Fix namespace declarations for test projects
This commit is contained in:
		| @@ -12,4 +12,4 @@ public static class Program | ||||
|     { | ||||
|         AnsiConsole.WriteLine("Project is set up with a reference to Spectre.Console.Analyzer"); | ||||
|     } | ||||
| } | ||||
| } | ||||
| @@ -1,11 +1,3 @@ | ||||
| using System.Collections.Immutable; | ||||
| using System.Linq; | ||||
| using Microsoft.CodeAnalysis; | ||||
| using Microsoft.CodeAnalysis.CSharp; | ||||
| using Microsoft.CodeAnalysis.CSharp.Syntax; | ||||
| using Microsoft.CodeAnalysis.Diagnostics; | ||||
| using Microsoft.CodeAnalysis.Operations; | ||||
|  | ||||
| namespace Spectre.Console.Analyzer; | ||||
|  | ||||
| /// <summary> | ||||
| @@ -91,4 +83,4 @@ public class FavorInstanceAnsiConsoleOverStaticAnalyzer : SpectreAnalyzer | ||||
|                 i.Declaration.Type.NormalizeWhitespace().ToString() == "IAnsiConsole" && | ||||
|                 (!isStatic ^ i.Modifiers.Any(modifier => modifier.Kind() == SyntaxKind.StaticKeyword))); | ||||
|     } | ||||
| } | ||||
| } | ||||
| @@ -1,12 +1,3 @@ | ||||
| using System.Collections.Immutable; | ||||
| using System.Composition; | ||||
| using System.Linq; | ||||
| using Microsoft.CodeAnalysis; | ||||
| using Microsoft.CodeAnalysis.CSharp; | ||||
| using Microsoft.CodeAnalysis.CSharp.Syntax; | ||||
| using Microsoft.CodeAnalysis.Diagnostics; | ||||
| using Microsoft.CodeAnalysis.Operations; | ||||
|  | ||||
| namespace Spectre.Console.Analyzer; | ||||
|  | ||||
| /// <summary> | ||||
| @@ -74,4 +65,4 @@ public class NoConcurrentLiveRenderablesAnalyzer : SpectreAnalyzer | ||||
|                         displayString)); | ||||
|             }, OperationKind.Invocation); | ||||
|     } | ||||
| } | ||||
| } | ||||
| @@ -1,12 +1,3 @@ | ||||
| using System.Collections.Immutable; | ||||
| using System.Composition; | ||||
| using System.Linq; | ||||
| using Microsoft.CodeAnalysis; | ||||
| using Microsoft.CodeAnalysis.CSharp; | ||||
| using Microsoft.CodeAnalysis.CSharp.Syntax; | ||||
| using Microsoft.CodeAnalysis.Diagnostics; | ||||
| using Microsoft.CodeAnalysis.Operations; | ||||
|  | ||||
| namespace Spectre.Console.Analyzer; | ||||
|  | ||||
| /// <summary> | ||||
| @@ -80,4 +71,4 @@ public class NoPromptsDuringLiveRenderablesAnalyzer : SpectreAnalyzer | ||||
|                         displayString)); | ||||
|             }, OperationKind.Invocation); | ||||
|     } | ||||
| } | ||||
| } | ||||
| @@ -1,5 +1,3 @@ | ||||
| using Microsoft.CodeAnalysis.Diagnostics; | ||||
|  | ||||
| namespace Spectre.Console.Analyzer; | ||||
|  | ||||
| /// <summary> | ||||
| @@ -21,4 +19,4 @@ public abstract class SpectreAnalyzer : DiagnosticAnalyzer | ||||
|     /// </summary> | ||||
|     /// <param name="compilationStartContext">Compilation Start Analysis Context.</param> | ||||
|     protected abstract void AnalyzeCompilation(CompilationStartAnalysisContext compilationStartContext); | ||||
| } | ||||
| } | ||||
| @@ -1,9 +1,3 @@ | ||||
| using System.Collections.Immutable; | ||||
| using Microsoft.CodeAnalysis; | ||||
| using Microsoft.CodeAnalysis.CSharp; | ||||
| using Microsoft.CodeAnalysis.Diagnostics; | ||||
| using Microsoft.CodeAnalysis.Operations; | ||||
|  | ||||
| namespace Spectre.Console.Analyzer; | ||||
|  | ||||
| /// <summary> | ||||
| @@ -59,4 +53,4 @@ public class UseSpectreInsteadOfSystemConsoleAnalyzer : SpectreAnalyzer | ||||
|                         displayString)); | ||||
|             }, OperationKind.Invocation); | ||||
|     } | ||||
| } | ||||
| } | ||||
| @@ -11,4 +11,4 @@ internal static class Constants | ||||
|         "Spectre.Console.Progress", | ||||
|         "Spectre.Console.Status", | ||||
|     }; | ||||
| } | ||||
| } | ||||
| @@ -1,5 +1,3 @@ | ||||
| using System.Collections.Concurrent; | ||||
| using Microsoft.CodeAnalysis; | ||||
| using static Microsoft.CodeAnalysis.DiagnosticSeverity; | ||||
| using static Spectre.Console.Analyzer.Descriptors.Category; | ||||
|  | ||||
| @@ -75,4 +73,4 @@ public static class Descriptors | ||||
|             Usage, | ||||
|             Warning, | ||||
|             "Avoid prompting for input while a current renderable is running."); | ||||
| } | ||||
| } | ||||
| @@ -1,10 +1,3 @@ | ||||
| using System.Linq; | ||||
| using System.Threading; | ||||
| using System.Threading.Tasks; | ||||
| using Microsoft.CodeAnalysis; | ||||
| using Microsoft.CodeAnalysis.CodeActions; | ||||
| using Microsoft.CodeAnalysis.CSharp; | ||||
| using Microsoft.CodeAnalysis.CSharp.Syntax; | ||||
| using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory; | ||||
|  | ||||
| namespace Spectre.Console.Analyzer.CodeActions; | ||||
| @@ -112,4 +105,4 @@ public class SwitchToAnsiConsoleAction : CodeAction | ||||
|                     .WithLeadingTrivia(_originalInvocation.GetLeadingTrivia())) | ||||
|         .Expression; | ||||
|     } | ||||
| } | ||||
| } | ||||
| @@ -1,11 +1,3 @@ | ||||
| using System.Collections.Immutable; | ||||
| using System.Composition; | ||||
| using System.Threading.Tasks; | ||||
| using Microsoft.CodeAnalysis; | ||||
| using Microsoft.CodeAnalysis.CodeFixes; | ||||
| using Microsoft.CodeAnalysis.CSharp.Syntax; | ||||
| using Spectre.Console.Analyzer.CodeActions; | ||||
|  | ||||
| namespace Spectre.Console.Analyzer.FixProviders; | ||||
|  | ||||
| /// <summary> | ||||
| @@ -31,4 +23,4 @@ public class StaticAnsiConsoleToInstanceFix : CodeFixProvider | ||||
|             new SwitchToAnsiConsoleAction(context.Document, methodDeclaration, "Convert static AnsiConsole calls to local instance."), | ||||
|             context.Diagnostics); | ||||
|     } | ||||
| } | ||||
| } | ||||
| @@ -1,11 +1,3 @@ | ||||
| using System.Collections.Immutable; | ||||
| using System.Composition; | ||||
| using System.Threading.Tasks; | ||||
| using Microsoft.CodeAnalysis; | ||||
| using Microsoft.CodeAnalysis.CodeFixes; | ||||
| using Microsoft.CodeAnalysis.CSharp.Syntax; | ||||
| using Spectre.Console.Analyzer.CodeActions; | ||||
|  | ||||
| namespace Spectre.Console.Analyzer.FixProviders; | ||||
|  | ||||
| /// <summary> | ||||
| @@ -31,4 +23,4 @@ public class SystemConsoleToAnsiConsoleFix : CodeFixProvider | ||||
|             new SwitchToAnsiConsoleAction(context.Document, methodDeclaration, "Convert static call to AnsiConsole to Spectre.Console.AnsiConsole"), | ||||
|             context.Diagnostics); | ||||
|     } | ||||
| } | ||||
| } | ||||
| @@ -1,4 +1,3 @@ | ||||
| using Microsoft.CodeAnalysis.CSharp.Syntax; | ||||
| using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory; | ||||
|  | ||||
| namespace Spectre.Console.Analyzer; | ||||
| @@ -6,4 +5,4 @@ namespace Spectre.Console.Analyzer; | ||||
| internal static class Syntax | ||||
| { | ||||
|     public static readonly UsingDirectiveSyntax SpectreUsing = UsingDirective(QualifiedName(IdentifierName("Spectre"), IdentifierName("Console"))); | ||||
| } | ||||
| } | ||||
							
								
								
									
										14
									
								
								src/Spectre.Console.Analyzer/Properties/Usings.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								src/Spectre.Console.Analyzer/Properties/Usings.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| global using System.Collections.Concurrent; | ||||
| global using System.Collections.Immutable; | ||||
| global using System.Composition; | ||||
| global using System.Linq; | ||||
| global using System.Threading; | ||||
| global using System.Threading.Tasks; | ||||
| global using Microsoft.CodeAnalysis; | ||||
| global using Microsoft.CodeAnalysis.CodeActions; | ||||
| global using Microsoft.CodeAnalysis.CodeFixes; | ||||
| global using Microsoft.CodeAnalysis.CSharp; | ||||
| global using Microsoft.CodeAnalysis.CSharp.Syntax; | ||||
| global using Microsoft.CodeAnalysis.Diagnostics; | ||||
| global using Microsoft.CodeAnalysis.Operations; | ||||
| global using Spectre.Console.Analyzer.CodeActions; | ||||
| @@ -1,6 +1,3 @@ | ||||
| using System; | ||||
| using Spectre.Console.Cli; | ||||
|  | ||||
| namespace Spectre.Console.Testing; | ||||
|  | ||||
| /// <summary> | ||||
| @@ -24,4 +21,4 @@ public sealed class CallbackCommandInterceptor : ICommandInterceptor | ||||
|     { | ||||
|         _callback(context, settings); | ||||
|     } | ||||
| } | ||||
| } | ||||
| @@ -1,6 +1,3 @@ | ||||
| using System; | ||||
| using Spectre.Console.Cli; | ||||
|  | ||||
| namespace Spectre.Console.Testing; | ||||
|  | ||||
| /// <summary> | ||||
| @@ -25,4 +22,4 @@ public sealed class CommandAppFailure | ||||
|             .TrimLines() | ||||
|             .Trim(); | ||||
|     } | ||||
| } | ||||
| } | ||||
| @@ -1,5 +1,3 @@ | ||||
| using Spectre.Console.Cli; | ||||
|  | ||||
| namespace Spectre.Console.Testing; | ||||
|  | ||||
| /// <summary> | ||||
| @@ -39,4 +37,4 @@ public sealed class CommandAppResult | ||||
|             .TrimLines() | ||||
|             .Trim(); | ||||
|     } | ||||
| } | ||||
| } | ||||
| @@ -1,6 +1,3 @@ | ||||
| using System; | ||||
| using Spectre.Console.Cli; | ||||
|  | ||||
| namespace Spectre.Console.Testing; | ||||
|  | ||||
| /// <summary> | ||||
| @@ -131,4 +128,4 @@ public sealed class CommandAppTester | ||||
|  | ||||
|         return new CommandAppResult(result, output, context, settings); | ||||
|     } | ||||
| } | ||||
| } | ||||
| @@ -1,6 +1,3 @@ | ||||
| using System; | ||||
| using Spectre.Console.Cli; | ||||
|  | ||||
| namespace Spectre.Console.Testing; | ||||
|  | ||||
| /// <summary> | ||||
| @@ -187,4 +184,4 @@ public sealed class TypeRegistrarBaseTests | ||||
|         { | ||||
|         } | ||||
|     } | ||||
| } | ||||
| } | ||||
| @@ -1,5 +1,3 @@ | ||||
| using System.Collections.Generic; | ||||
|  | ||||
| namespace Spectre.Console.Testing; | ||||
|  | ||||
| /// <summary> | ||||
| @@ -43,4 +41,4 @@ public static class StringExtensions | ||||
|  | ||||
|         return string.Empty; | ||||
|     } | ||||
| } | ||||
| } | ||||
| @@ -21,4 +21,4 @@ public static class StyleExtensions | ||||
|  | ||||
|         return style.Background(color); | ||||
|     } | ||||
| } | ||||
| } | ||||
| @@ -13,4 +13,4 @@ internal sealed class NoopCursor : IAnsiConsoleCursor | ||||
|     public void Show(bool show) | ||||
|     { | ||||
|     } | ||||
| } | ||||
| } | ||||
| @@ -1,6 +1,3 @@ | ||||
| using System; | ||||
| using System.Threading.Tasks; | ||||
|  | ||||
| namespace Spectre.Console.Testing; | ||||
|  | ||||
| internal sealed class NoopExclusivityMode : IExclusivityMode | ||||
| @@ -14,4 +11,4 @@ internal sealed class NoopExclusivityMode : IExclusivityMode | ||||
|     { | ||||
|         return await func().ConfigureAwait(false); | ||||
|     } | ||||
| } | ||||
| } | ||||
							
								
								
									
										7
									
								
								src/Spectre.Console.Testing/Properties/Usings.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								src/Spectre.Console.Testing/Properties/Usings.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | ||||
| global using System; | ||||
| global using System.Collections.Generic; | ||||
| global using System.IO; | ||||
| global using System.Threading; | ||||
| global using System.Threading.Tasks; | ||||
| global using Spectre.Console.Cli; | ||||
| global using Spectre.Console.Rendering; | ||||
| @@ -17,8 +17,4 @@ | ||||
|     <ProjectReference Include="..\Spectre.Console\Spectre.Console.csproj" /> | ||||
|   </ItemGroup> | ||||
|  | ||||
|   <ItemGroup> | ||||
|     <Folder Include="Properties\" /> | ||||
|   </ItemGroup> | ||||
|  | ||||
| </Project> | ||||
|   | ||||
| @@ -1,5 +1,3 @@ | ||||
| using Spectre.Console.Rendering; | ||||
|  | ||||
| namespace Spectre.Console.Testing; | ||||
|  | ||||
| /// <summary> | ||||
| @@ -36,4 +34,4 @@ public sealed class TestCapabilities : IReadOnlyCapabilities | ||||
|     { | ||||
|         return new RenderContext(this); | ||||
|     } | ||||
| } | ||||
| } | ||||
| @@ -1,8 +1,3 @@ | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
| using System.IO; | ||||
| using Spectre.Console.Rendering; | ||||
|  | ||||
| namespace Spectre.Console.Testing; | ||||
|  | ||||
| /// <summary> | ||||
| @@ -118,4 +113,4 @@ public sealed class TestConsole : IAnsiConsole, IDisposable | ||||
|     { | ||||
|         _cursor = cursor; | ||||
|     } | ||||
| } | ||||
| } | ||||
| @@ -63,4 +63,4 @@ public static class TestConsoleExtensions | ||||
|         console.EmitAnsiSequences = true; | ||||
|         return console; | ||||
|     } | ||||
| } | ||||
| } | ||||
| @@ -1,8 +1,3 @@ | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
| using System.Threading; | ||||
| using System.Threading.Tasks; | ||||
|  | ||||
| namespace Spectre.Console.Testing; | ||||
|  | ||||
| /// <summary> | ||||
| @@ -88,4 +83,4 @@ public sealed class TestConsoleInput : IAnsiConsoleInput | ||||
|     { | ||||
|         return Task.FromResult(ReadKey(intercept)); | ||||
|     } | ||||
| } | ||||
| } | ||||
| @@ -1,5 +1,3 @@ | ||||
| using System; | ||||
|  | ||||
| namespace Spectre.Console; | ||||
|  | ||||
| /// <summary> | ||||
|   | ||||
| @@ -1,5 +1,3 @@ | ||||
| using Spectre.Console.Rendering; | ||||
|  | ||||
| namespace Spectre.Console; | ||||
|  | ||||
| /// <summary> | ||||
|   | ||||
| @@ -1,5 +1,3 @@ | ||||
| using System; | ||||
|  | ||||
| namespace Spectre.Console; | ||||
|  | ||||
| /// <summary> | ||||
|   | ||||
| @@ -1,5 +1,3 @@ | ||||
| using System; | ||||
|  | ||||
| namespace Spectre.Console; | ||||
|  | ||||
| /// <summary> | ||||
|   | ||||
| @@ -1,6 +1,3 @@ | ||||
| using System; | ||||
| using Spectre.Console.Rendering; | ||||
|  | ||||
| namespace Spectre.Console; | ||||
|  | ||||
| /// <summary> | ||||
|   | ||||
| @@ -1,6 +1,3 @@ | ||||
| using System; | ||||
| using Spectre.Console.Rendering; | ||||
|  | ||||
| namespace Spectre.Console; | ||||
|  | ||||
| /// <summary> | ||||
|   | ||||
| @@ -1,5 +1,3 @@ | ||||
| using System; | ||||
|  | ||||
| namespace Spectre.Console; | ||||
|  | ||||
| /// <summary> | ||||
|   | ||||
| @@ -1,6 +1,3 @@ | ||||
| using System; | ||||
| using System.Globalization; | ||||
|  | ||||
| namespace Spectre.Console; | ||||
|  | ||||
| /// <summary> | ||||
|   | ||||
| @@ -1,6 +1,3 @@ | ||||
| using System; | ||||
| using System.Globalization; | ||||
|  | ||||
| namespace Spectre.Console; | ||||
|  | ||||
| /// <summary> | ||||
|   | ||||
| @@ -1,5 +1,3 @@ | ||||
| using System; | ||||
|  | ||||
| namespace Spectre.Console; | ||||
|  | ||||
| /// <summary> | ||||
|   | ||||
| @@ -1,8 +1,3 @@ | ||||
| using System; | ||||
| using System.Runtime.InteropServices; | ||||
| using Spectre.Console.Enrichment; | ||||
| using Spectre.Console.Internal; | ||||
|  | ||||
| namespace Spectre.Console; | ||||
|  | ||||
| /// <summary> | ||||
|   | ||||
| @@ -1,7 +1,3 @@ | ||||
| using System; | ||||
| using System.IO; | ||||
| using System.Text; | ||||
|  | ||||
| namespace Spectre.Console; | ||||
|  | ||||
| /// <summary> | ||||
|   | ||||
| @@ -1,5 +1,3 @@ | ||||
| using System.Collections.Generic; | ||||
|  | ||||
| namespace Spectre.Console; | ||||
|  | ||||
| /// <summary> | ||||
|   | ||||
| @@ -1,6 +1,3 @@ | ||||
| using System.Diagnostics.CodeAnalysis; | ||||
| using Spectre.Console.Rendering; | ||||
|  | ||||
| namespace Spectre.Console; | ||||
|  | ||||
| /// <summary> | ||||
|   | ||||
| @@ -1,5 +1,3 @@ | ||||
| using Spectre.Console.Rendering; | ||||
|  | ||||
| namespace Spectre.Console; | ||||
|  | ||||
| /// <summary> | ||||
|   | ||||
| @@ -1,5 +1,3 @@ | ||||
| using System; | ||||
|  | ||||
| namespace Spectre.Console; | ||||
|  | ||||
| /// <summary> | ||||
|   | ||||
| @@ -1,5 +1,3 @@ | ||||
| using System; | ||||
|  | ||||
| namespace Spectre.Console.Cli; | ||||
|  | ||||
| /// <summary> | ||||
|   | ||||
| @@ -1,7 +1,3 @@ | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
| using System.Linq; | ||||
|  | ||||
| namespace Spectre.Console.Cli; | ||||
|  | ||||
| /// <summary> | ||||
|   | ||||
| @@ -1,5 +1,3 @@ | ||||
| using System; | ||||
|  | ||||
| namespace Spectre.Console.Cli; | ||||
|  | ||||
| /// <summary> | ||||
|   | ||||
| @@ -1,5 +1,3 @@ | ||||
| using System; | ||||
|  | ||||
| namespace Spectre.Console.Cli; | ||||
|  | ||||
| /// <summary> | ||||
|   | ||||
| @@ -1,5 +1,3 @@ | ||||
| using System; | ||||
|  | ||||
| namespace Spectre.Console.Cli; | ||||
|  | ||||
| /// <summary> | ||||
|   | ||||
| @@ -1,5 +1,3 @@ | ||||
| using System.Threading.Tasks; | ||||
|  | ||||
| namespace Spectre.Console.Cli; | ||||
|  | ||||
| /// <summary> | ||||
|   | ||||
| @@ -1,6 +1,3 @@ | ||||
| using System.Diagnostics; | ||||
| using System.Threading.Tasks; | ||||
|  | ||||
| namespace Spectre.Console.Cli; | ||||
|  | ||||
| /// <summary> | ||||
|   | ||||
| @@ -1,5 +1,3 @@ | ||||
| using System; | ||||
|  | ||||
| namespace Spectre.Console.Cli; | ||||
|  | ||||
| /// <summary> | ||||
|   | ||||
| @@ -1,5 +1,3 @@ | ||||
| using System.Threading.Tasks; | ||||
|  | ||||
| namespace Spectre.Console.Cli; | ||||
|  | ||||
| /// <summary> | ||||
|   | ||||
| @@ -1,9 +1,3 @@ | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
| using System.Diagnostics; | ||||
| using System.Threading.Tasks; | ||||
| using Spectre.Console.Rendering; | ||||
|  | ||||
| namespace Spectre.Console.Cli; | ||||
|  | ||||
| /// <summary> | ||||
|   | ||||
| @@ -1,6 +1,3 @@ | ||||
| using System; | ||||
| using Spectre.Console.Rendering; | ||||
|  | ||||
| namespace Spectre.Console.Cli; | ||||
|  | ||||
| /// <summary> | ||||
|   | ||||
| @@ -1,7 +1,3 @@ | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
| using System.Threading.Tasks; | ||||
|  | ||||
| namespace Spectre.Console.Cli; | ||||
|  | ||||
| /// <summary> | ||||
|   | ||||
| @@ -1,7 +1,3 @@ | ||||
| using System; | ||||
| using System.Linq; | ||||
| using Spectre.Console.Rendering; | ||||
|  | ||||
| namespace Spectre.Console.Cli; | ||||
|  | ||||
| /// <summary> | ||||
|   | ||||
| @@ -1,7 +1,3 @@ | ||||
| using System.Diagnostics; | ||||
| using System.Diagnostics.CodeAnalysis; | ||||
| using System.Threading.Tasks; | ||||
|  | ||||
| namespace Spectre.Console.Cli; | ||||
|  | ||||
| /// <summary> | ||||
|   | ||||
| @@ -1,5 +1,3 @@ | ||||
| using System; | ||||
|  | ||||
| namespace Spectre.Console.Cli; | ||||
|  | ||||
| /// <summary> | ||||
|   | ||||
| @@ -1,8 +1,3 @@ | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
| using System.Globalization; | ||||
| using Spectre.Console.Rendering; | ||||
|  | ||||
| namespace Spectre.Console.Cli; | ||||
|  | ||||
| /// <summary> | ||||
|   | ||||
| @@ -1,6 +1,3 @@ | ||||
| using System; | ||||
| using Spectre.Console.Rendering; | ||||
|  | ||||
| namespace Spectre.Console.Cli; | ||||
|  | ||||
| /// <summary> | ||||
|   | ||||
| @@ -1,6 +1,3 @@ | ||||
| using System.Globalization; | ||||
| using Spectre.Console.Rendering; | ||||
|  | ||||
| namespace Spectre.Console.Cli; | ||||
|  | ||||
| /// <summary> | ||||
|   | ||||
| @@ -1,5 +1,3 @@ | ||||
| using System; | ||||
|  | ||||
| namespace Spectre.Console.Cli; | ||||
|  | ||||
| /// <summary> | ||||
|   | ||||
| @@ -1,6 +1,3 @@ | ||||
| using System; | ||||
| using System.Globalization; | ||||
|  | ||||
| namespace Spectre.Console.Cli; | ||||
|  | ||||
| /// <summary> | ||||
|   | ||||
| @@ -1,5 +1,3 @@ | ||||
| using System.Threading.Tasks; | ||||
|  | ||||
| namespace Spectre.Console.Cli; | ||||
|  | ||||
| /// <summary> | ||||
|   | ||||
| @@ -1,7 +1,3 @@ | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
| using System.Threading.Tasks; | ||||
|  | ||||
| namespace Spectre.Console.Cli; | ||||
|  | ||||
| /// <summary> | ||||
|   | ||||
| @@ -1,5 +1,3 @@ | ||||
| using System; | ||||
|  | ||||
| namespace Spectre.Console.Cli; | ||||
|  | ||||
| /// <summary> | ||||
|   | ||||
| @@ -1,5 +1,3 @@ | ||||
| using System.Threading.Tasks; | ||||
|  | ||||
| namespace Spectre.Console.Cli; | ||||
|  | ||||
| /// <summary> | ||||
|   | ||||
| @@ -1,5 +1,3 @@ | ||||
| using System; | ||||
|  | ||||
| namespace Spectre.Console.Cli; | ||||
|  | ||||
| /// <summary> | ||||
|   | ||||
| @@ -1,5 +1,3 @@ | ||||
| using System; | ||||
|  | ||||
| namespace Spectre.Console.Cli; | ||||
|  | ||||
| /// <summary> | ||||
|   | ||||
| @@ -1,5 +1,3 @@ | ||||
| using System; | ||||
|  | ||||
| namespace Spectre.Console.Cli; | ||||
|  | ||||
| /// <summary> | ||||
|   | ||||
| @@ -1,5 +1,3 @@ | ||||
| using System; | ||||
|  | ||||
| namespace Spectre.Console.Cli; | ||||
|  | ||||
| /// <summary> | ||||
|   | ||||
| @@ -1,6 +1,3 @@ | ||||
| using System.Collections.Generic; | ||||
| using System.Linq; | ||||
|  | ||||
| namespace Spectre.Console.Cli; | ||||
|  | ||||
| /// <summary> | ||||
|   | ||||
| @@ -1,5 +1,3 @@ | ||||
| using System; | ||||
|  | ||||
| namespace Spectre.Console.Cli; | ||||
|  | ||||
| /// <summary> | ||||
|   | ||||
| @@ -1,5 +1,3 @@ | ||||
| using System; | ||||
|  | ||||
| namespace Spectre.Console.Cli; | ||||
|  | ||||
| /// <summary> | ||||
|   | ||||
| @@ -1,7 +1,3 @@ | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
| using System.Reflection; | ||||
|  | ||||
| namespace Spectre.Console.Cli; | ||||
|  | ||||
| internal static class CommandConstructorBinder | ||||
|   | ||||
| @@ -1,5 +1,3 @@ | ||||
| using System; | ||||
|  | ||||
| namespace Spectre.Console.Cli; | ||||
|  | ||||
| internal static class CommandPropertyBinder | ||||
|   | ||||
| @@ -1,5 +1,3 @@ | ||||
| using System; | ||||
|  | ||||
| namespace Spectre.Console.Cli; | ||||
|  | ||||
| internal sealed class CommandValueBinder | ||||
|   | ||||
| @@ -1,8 +1,3 @@ | ||||
| using System; | ||||
| using System.Collections; | ||||
| using System.Collections.Generic; | ||||
| using System.Linq; | ||||
|  | ||||
| namespace Spectre.Console.Cli; | ||||
|  | ||||
| internal sealed class CommandValueLookup : IEnumerable<(CommandParameter Parameter, object? Value)> | ||||
|   | ||||
| @@ -1,7 +1,3 @@ | ||||
| using System; | ||||
| using System.ComponentModel; | ||||
| using System.Diagnostics.CodeAnalysis; | ||||
|  | ||||
| namespace Spectre.Console.Cli; | ||||
|  | ||||
| internal static class CommandValueResolver | ||||
|   | ||||
| @@ -1,9 +1,3 @@ | ||||
| using System; | ||||
| using System.Collections; | ||||
| using System.Collections.Generic; | ||||
| using System.Diagnostics.CodeAnalysis; | ||||
| using System.Linq; | ||||
|  | ||||
| namespace Spectre.Console.Cli; | ||||
|  | ||||
| [SuppressMessage("Performance", "CA1812: Avoid uninstantiated internal classes")] | ||||
|   | ||||
| @@ -1,5 +1,3 @@ | ||||
| using System; | ||||
|  | ||||
| namespace Spectre.Console.Cli; | ||||
|  | ||||
| internal static class CommandBinder | ||||
|   | ||||
| @@ -1,9 +1,3 @@ | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
| using System.Linq; | ||||
| using System.Reflection; | ||||
| using System.Threading.Tasks; | ||||
|  | ||||
| namespace Spectre.Console.Cli; | ||||
|  | ||||
| internal sealed class CommandExecutor | ||||
|   | ||||
| @@ -1,6 +1,3 @@ | ||||
| using System; | ||||
| using System.Linq; | ||||
|  | ||||
| namespace Spectre.Console.Cli; | ||||
|  | ||||
| internal static class CommandSuggestor | ||||
|   | ||||
| @@ -1,10 +1,3 @@ | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
| using System.ComponentModel; | ||||
| using System.Diagnostics.CodeAnalysis; | ||||
| using System.Linq; | ||||
| using Spectre.Console.Rendering; | ||||
|  | ||||
| namespace Spectre.Console.Cli; | ||||
|  | ||||
| [Description("Displays diagnostics about CLI configurations")] | ||||
|   | ||||
| @@ -1,6 +1,3 @@ | ||||
| using System.ComponentModel; | ||||
| using System.Diagnostics.CodeAnalysis; | ||||
|  | ||||
| namespace Spectre.Console.Cli; | ||||
|  | ||||
| [Description("Displays the CLI library version")] | ||||
|   | ||||
| @@ -1,12 +1,3 @@ | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
| using System.ComponentModel; | ||||
| using System.Diagnostics.CodeAnalysis; | ||||
| using System.Globalization; | ||||
| using System.Linq; | ||||
| using System.Text; | ||||
| using System.Xml; | ||||
|  | ||||
| namespace Spectre.Console.Cli; | ||||
|  | ||||
| [Description("Generates an XML representation of the CLI configuration.")] | ||||
|   | ||||
| @@ -1,8 +1,3 @@ | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
| using System.Text; | ||||
| using Spectre.Console.Rendering; | ||||
|  | ||||
| namespace Spectre.Console.Cli; | ||||
|  | ||||
| internal sealed class Composer : IRenderable | ||||
|   | ||||
| @@ -1,7 +1,3 @@ | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
| using System.Reflection; | ||||
|  | ||||
| namespace Spectre.Console.Cli; | ||||
|  | ||||
| internal abstract class ComponentActivator | ||||
|   | ||||
| @@ -1,6 +1,3 @@ | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
|  | ||||
| namespace Spectre.Console.Cli; | ||||
|  | ||||
| internal sealed class ComponentRegistration | ||||
|   | ||||
| @@ -1,7 +1,3 @@ | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
| using System.Linq; | ||||
|  | ||||
| namespace Spectre.Console.Cli; | ||||
|  | ||||
| internal sealed class ComponentRegistry : IDisposable | ||||
|   | ||||
| @@ -1,6 +1,3 @@ | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
|  | ||||
| namespace Spectre.Console.Cli; | ||||
|  | ||||
| internal sealed class DefaultTypeRegistrar : ITypeRegistrar | ||||
|   | ||||
| @@ -1,7 +1,3 @@ | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
| using System.Linq; | ||||
|  | ||||
| namespace Spectre.Console.Cli; | ||||
|  | ||||
| internal sealed class DefaultTypeResolver : IDisposable, ITypeResolver | ||||
|   | ||||
| @@ -1,5 +1,3 @@ | ||||
| using System; | ||||
|  | ||||
| namespace Spectre.Console.Cli; | ||||
|  | ||||
| internal sealed class CommandAppSettings : ICommandAppSettings | ||||
|   | ||||
| @@ -1,7 +1,3 @@ | ||||
| using System; | ||||
| using System.Diagnostics.CodeAnalysis; | ||||
| using System.Reflection; | ||||
|  | ||||
| namespace Spectre.Console.Cli; | ||||
|  | ||||
| internal static class ConfigurationHelper | ||||
|   | ||||
| @@ -1,7 +1,3 @@ | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
| using Spectre.Console.Cli.Unsafe; | ||||
|  | ||||
| namespace Spectre.Console.Cli; | ||||
|  | ||||
| internal sealed class Configurator : IUnsafeConfigurator, IConfigurator, IConfiguration | ||||
|   | ||||
| @@ -1,6 +1,3 @@ | ||||
| using System; | ||||
| using Spectre.Console.Cli.Unsafe; | ||||
|  | ||||
| namespace Spectre.Console.Cli; | ||||
|  | ||||
| internal sealed class Configurator<TSettings> : IUnsafeBranchConfigurator, IConfigurator<TSettings> | ||||
|   | ||||
| @@ -1,6 +1,3 @@ | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
|  | ||||
| namespace Spectre.Console.Cli; | ||||
|  | ||||
| internal sealed class ConfiguredCommand | ||||
|   | ||||
| @@ -1,5 +1,3 @@ | ||||
| using System.Collections.Generic; | ||||
|  | ||||
| namespace Spectre.Console.Cli; | ||||
|  | ||||
| /// <summary> | ||||
|   | ||||
| @@ -1,5 +1,3 @@ | ||||
| using System.Collections.Generic; | ||||
|  | ||||
| namespace Spectre.Console.Cli; | ||||
|  | ||||
| internal static class TemplateParser | ||||
|   | ||||
Some files were not shown because too many files have changed in this diff Show More
		Reference in New Issue
	
	Block a user
	 Patrik Svensson
					Patrik Svensson