mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-06-19 13:28:16 +08:00
Add global usings (#668)
* Use global usings * Fix namespace declarations for test projects
This commit is contained in:
@ -1,7 +1,3 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Spectre.Console.Rendering;
|
||||
|
||||
namespace Spectre.Console;
|
||||
|
||||
internal static class Aligner
|
||||
|
@ -1,7 +1,3 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using Spectre.Console.Rendering;
|
||||
using static Spectre.Console.AnsiSequences;
|
||||
|
||||
namespace Spectre.Console;
|
||||
|
@ -1,7 +1,3 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace Spectre.Console;
|
||||
|
||||
internal static class AnsiColorBuilder
|
||||
|
@ -1,5 +1,3 @@
|
||||
using System;
|
||||
using Spectre.Console.Rendering;
|
||||
using static Spectre.Console.AnsiSequences;
|
||||
|
||||
namespace Spectre.Console;
|
||||
|
@ -1,4 +1,3 @@
|
||||
using System;
|
||||
using static Spectre.Console.AnsiSequences;
|
||||
|
||||
namespace Spectre.Console;
|
||||
|
@ -1,5 +1,3 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Spectre.Console;
|
||||
|
||||
internal static class AnsiDecorationBuilder
|
||||
|
@ -1,9 +1,3 @@
|
||||
using System;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Linq;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Portions of this code was ported from the supports-ansi project by Qingrong Ke
|
||||
// https://github.com/keqingrong/supports-ansi/blob/master/index.js
|
||||
|
@ -1,6 +1,3 @@
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace Spectre.Console;
|
||||
|
||||
internal sealed class AnsiLinkHasher
|
||||
|
@ -1,5 +1,3 @@
|
||||
using System.Linq;
|
||||
|
||||
namespace Spectre.Console;
|
||||
|
||||
internal static class AnsiSequences
|
||||
|
@ -1,6 +1,3 @@
|
||||
using System;
|
||||
using Spectre.Console.Rendering;
|
||||
|
||||
namespace Spectre.Console;
|
||||
|
||||
internal sealed class AnsiConsoleFacade : IAnsiConsole
|
||||
|
@ -1,5 +1,3 @@
|
||||
using Spectre.Console.Rendering;
|
||||
|
||||
namespace Spectre.Console;
|
||||
|
||||
/// <summary>
|
||||
|
@ -1,5 +1,3 @@
|
||||
using Spectre.Console.Rendering;
|
||||
|
||||
namespace Spectre.Console;
|
||||
|
||||
internal sealed class LegacyConsoleBackend : IAnsiConsoleBackend
|
||||
|
@ -1,5 +1,3 @@
|
||||
using Wcwidth;
|
||||
|
||||
namespace Spectre.Console;
|
||||
|
||||
internal static class Cell
|
||||
|
@ -1,7 +1,3 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Spectre.Console;
|
||||
|
||||
internal sealed class ListWithCallback<T> : IList<T>, IReadOnlyList<T>
|
||||
|
@ -1,7 +1,3 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace Spectre.Console;
|
||||
|
||||
internal static partial class ColorPalette
|
||||
|
@ -1,6 +1,3 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Spectre.Console;
|
||||
|
||||
internal static class ColorSystemDetector
|
||||
|
@ -1,6 +1,3 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Spectre.Console;
|
||||
|
||||
internal static partial class ColorTable
|
||||
|
@ -1,5 +1,3 @@
|
||||
using System.IO;
|
||||
|
||||
namespace Spectre.Console;
|
||||
|
||||
internal static class ConsoleHelper
|
||||
|
@ -1,7 +1,3 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace Spectre.Console;
|
||||
|
||||
internal static class DecorationTable
|
||||
|
@ -1,7 +1,3 @@
|
||||
using System;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Spectre.Console.Internal;
|
||||
|
||||
internal sealed class DefaultExclusivityMode : IExclusivityMode
|
||||
|
@ -1,7 +1,3 @@
|
||||
using System;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Spectre.Console;
|
||||
|
||||
internal sealed class DefaultInput : IAnsiConsoleInput
|
||||
|
@ -1,6 +1,3 @@
|
||||
using System;
|
||||
using System.Globalization;
|
||||
|
||||
namespace Spectre.Console;
|
||||
|
||||
internal struct FileSize
|
||||
|
@ -1,11 +1,6 @@
|
||||
// Ported from Rich by Will McGugan, licensed under MIT.
|
||||
// https://github.com/willmcgugan/rich/blob/527475837ebbfc427530b3ee0d4d0741d2d0fc6d/rich/_ratio.py
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
|
||||
namespace Spectre.Console;
|
||||
|
||||
internal static class Ratio
|
||||
|
@ -1,6 +1,3 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
|
||||
namespace Spectre.Console;
|
||||
|
||||
internal static class ResourceReader
|
||||
|
@ -1,8 +1,3 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using Spectre.Console.Rendering;
|
||||
|
||||
namespace Spectre.Console.Internal;
|
||||
|
||||
internal sealed class HtmlEncoder : IAnsiConsoleEncoder
|
||||
|
@ -1,7 +1,3 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using Spectre.Console.Rendering;
|
||||
|
||||
namespace Spectre.Console.Internal;
|
||||
|
||||
internal sealed class TextEncoder : IAnsiConsoleEncoder
|
||||
|
@ -1,7 +1,3 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace Spectre.Console;
|
||||
|
||||
internal static class MarkupParser
|
||||
|
@ -1,5 +1,3 @@
|
||||
using System;
|
||||
|
||||
namespace Spectre.Console;
|
||||
|
||||
internal sealed class MarkupToken
|
||||
|
@ -1,6 +1,3 @@
|
||||
using System;
|
||||
using System.Text;
|
||||
|
||||
namespace Spectre.Console;
|
||||
|
||||
internal sealed class MarkupTokenizer : IDisposable
|
||||
|
@ -1,6 +1,3 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
|
||||
namespace Spectre.Console;
|
||||
|
||||
internal sealed class StringBuffer : IDisposable
|
||||
|
@ -1,8 +1,3 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Reflection;
|
||||
|
||||
namespace Spectre.Console;
|
||||
|
||||
internal static class TypeConverterHelper
|
||||
|
Reference in New Issue
Block a user