diff --git a/private/Nitrocid.Tests/ConsoleBase/ConsoleQueryingTests.cs b/private/Nitrocid.Tests/ConsoleBase/ConsoleQueryingTests.cs index 1d747dd0f6..996cd42886 100644 --- a/private/Nitrocid.Tests/ConsoleBase/ConsoleQueryingTests.cs +++ b/private/Nitrocid.Tests/ConsoleBase/ConsoleQueryingTests.cs @@ -20,7 +20,6 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using Shouldly; using System; -using Terminaux.Base; using Terminaux.Base.Extensions; using Textify.General; diff --git a/private/Nitrocid.Tests/Shell/ShellBase/Shells/ShellInfoTest.cs b/private/Nitrocid.Tests/Shell/ShellBase/Shells/ShellInfoTest.cs index 9f1584d6e6..9b2f0733e3 100644 --- a/private/Nitrocid.Tests/Shell/ShellBase/Shells/ShellInfoTest.cs +++ b/private/Nitrocid.Tests/Shell/ShellBase/Shells/ShellInfoTest.cs @@ -28,12 +28,12 @@ namespace Nitrocid.Tests.Shell.ShellBase.Shells class ShellInfoTest : BaseShellInfo, IShellInfo { - public override List Commands => new() - { + public override List Commands => + [ new CommandInfo("test", "Test command", [ new CommandArgumentInfo() ], null) - }; + ]; public override BaseShell ShellBase => new ShellTest(); diff --git a/public/Nitrocid.Addons/Nitrocid.Extras.Amusements/Amusements/Games/BackRace.cs b/public/Nitrocid.Addons/Nitrocid.Extras.Amusements/Amusements/Games/BackRace.cs index 3afb610283..6be1120696 100644 --- a/public/Nitrocid.Addons/Nitrocid.Extras.Amusements/Amusements/Games/BackRace.cs +++ b/public/Nitrocid.Addons/Nitrocid.Extras.Amusements/Amusements/Games/BackRace.cs @@ -29,7 +29,6 @@ using Nitrocid.Languages; using Nitrocid.ConsoleBase.Writers; using Nitrocid.Drivers.RNG; -using Terminaux.Inputs; using Terminaux.Base; using Terminaux.Colors.Data; using Terminaux.Reader; diff --git a/public/Nitrocid.Addons/Nitrocid.Extras.Amusements/Amusements/Games/Hangman.cs b/public/Nitrocid.Addons/Nitrocid.Extras.Amusements/Amusements/Games/Hangman.cs index 9fb8e78e67..8950fdf26f 100644 --- a/public/Nitrocid.Addons/Nitrocid.Extras.Amusements/Amusements/Games/Hangman.cs +++ b/public/Nitrocid.Addons/Nitrocid.Extras.Amusements/Amusements/Games/Hangman.cs @@ -21,7 +21,6 @@ using System.Collections.Generic; using System.Text; using System.Threading; -using Terminaux.Inputs; using Terminaux.Writer.ConsoleWriters; using Nitrocid.Drivers.RNG; using Nitrocid.Kernel.Debugging; diff --git a/public/Nitrocid.Addons/Nitrocid.Extras.Amusements/Amusements/Games/MeteorShooter.cs b/public/Nitrocid.Addons/Nitrocid.Extras.Amusements/Amusements/Games/MeteorShooter.cs index 5299c7cc18..250a2ee1b4 100644 --- a/public/Nitrocid.Addons/Nitrocid.Extras.Amusements/Amusements/Games/MeteorShooter.cs +++ b/public/Nitrocid.Addons/Nitrocid.Extras.Amusements/Amusements/Games/MeteorShooter.cs @@ -27,7 +27,6 @@ using Nitrocid.Languages; using Nitrocid.Drivers.RNG; using Nitrocid.Misc.Screensaver; -using Terminaux.Inputs; using Terminaux.Base; using Terminaux.Colors.Data; using Nitrocid.Kernel.Debugging; diff --git a/public/Nitrocid.Addons/Nitrocid.Extras.Amusements/Amusements/Games/ShipDuet.cs b/public/Nitrocid.Addons/Nitrocid.Extras.Amusements/Amusements/Games/ShipDuet.cs index d31d519961..6f7ea85f5b 100644 --- a/public/Nitrocid.Addons/Nitrocid.Extras.Amusements/Amusements/Games/ShipDuet.cs +++ b/public/Nitrocid.Addons/Nitrocid.Extras.Amusements/Amusements/Games/ShipDuet.cs @@ -27,7 +27,6 @@ using Nitrocid.Languages; using Nitrocid.Drivers.RNG; using Nitrocid.Misc.Screensaver; -using Terminaux.Inputs; using Terminaux.Base; using Terminaux.Colors.Data; using Nitrocid.Kernel.Debugging; diff --git a/public/Nitrocid.Addons/Nitrocid.Extras.Amusements/Amusements/Games/Snaker.cs b/public/Nitrocid.Addons/Nitrocid.Extras.Amusements/Amusements/Games/Snaker.cs index c3741add6a..8ec560edfc 100644 --- a/public/Nitrocid.Addons/Nitrocid.Extras.Amusements/Amusements/Games/Snaker.cs +++ b/public/Nitrocid.Addons/Nitrocid.Extras.Amusements/Amusements/Games/Snaker.cs @@ -26,7 +26,6 @@ using Nitrocid.Drivers.RNG; using Nitrocid.Kernel.Threading; using Nitrocid.Misc.Screensaver; -using Terminaux.Inputs; using Terminaux.Base; using Terminaux.Colors.Data; using Terminaux.Reader; diff --git a/public/Nitrocid.Addons/Nitrocid.Extras.Amusements/Amusements/Games/SpeedPress.cs b/public/Nitrocid.Addons/Nitrocid.Extras.Amusements/Amusements/Games/SpeedPress.cs index 51c295cbec..0775bfe0be 100644 --- a/public/Nitrocid.Addons/Nitrocid.Extras.Amusements/Amusements/Games/SpeedPress.cs +++ b/public/Nitrocid.Addons/Nitrocid.Extras.Amusements/Amusements/Games/SpeedPress.cs @@ -19,7 +19,6 @@ using System; using Nitrocid.ConsoleBase.Colors; -using Terminaux.Inputs; using Nitrocid.ConsoleBase.Writers; using Terminaux.Writer.ConsoleWriters; using Nitrocid.Languages; diff --git a/public/Nitrocid.Addons/Nitrocid.Extras.Amusements/Amusements/Games/Wordle.cs b/public/Nitrocid.Addons/Nitrocid.Extras.Amusements/Amusements/Games/Wordle.cs index a4d098d948..908f4949bb 100644 --- a/public/Nitrocid.Addons/Nitrocid.Extras.Amusements/Amusements/Games/Wordle.cs +++ b/public/Nitrocid.Addons/Nitrocid.Extras.Amusements/Amusements/Games/Wordle.cs @@ -23,7 +23,6 @@ using Terminaux.Colors; using Textify.Words; using Terminaux.Writer.ConsoleWriters; -using Terminaux.Inputs; using Nitrocid.Languages; using Terminaux.Writer.FancyWriters; using Terminaux.Base; diff --git a/public/Nitrocid.Addons/Nitrocid.Extras.ArchiveShell/Archive/Shell/ArchiveShellInfo.cs b/public/Nitrocid.Addons/Nitrocid.Extras.ArchiveShell/Archive/Shell/ArchiveShellInfo.cs index 76ca4809ce..1dfb572e3e 100644 --- a/public/Nitrocid.Addons/Nitrocid.Extras.ArchiveShell/Archive/Shell/ArchiveShellInfo.cs +++ b/public/Nitrocid.Addons/Nitrocid.Extras.ArchiveShell/Archive/Shell/ArchiveShellInfo.cs @@ -37,8 +37,8 @@ internal class ArchiveShellInfo : BaseShellInfo, IShellInfo /// /// Archive commands /// - public override List Commands => new() - { + public override List Commands => + [ new CommandInfo("cdir", /* Localizable */ "Gets current local directory", [ new CommandArgumentInfo() @@ -88,7 +88,7 @@ internal class ArchiveShellInfo : BaseShellInfo, IShellInfo new CommandArgumentPart(false, "where") }) ], new PackCommand()), - }; + ]; public override Dictionary ShellPresets => new() { diff --git a/public/Nitrocid.Addons/Nitrocid.Extras.BassBoom/Animations/Lyrics/Lyrics.cs b/public/Nitrocid.Addons/Nitrocid.Extras.BassBoom/Animations/Lyrics/Lyrics.cs index de3b962b0e..61acb64d88 100644 --- a/public/Nitrocid.Addons/Nitrocid.Extras.BassBoom/Animations/Lyrics/Lyrics.cs +++ b/public/Nitrocid.Addons/Nitrocid.Extras.BassBoom/Animations/Lyrics/Lyrics.cs @@ -36,7 +36,6 @@ using Nitrocid.Misc.Screensaver; using Nitrocid.Languages; using Nitrocid.ConsoleBase.Writers; -using Textify.General; using Terminaux.Colors; using Terminaux.Base; using Terminaux.Base.Extensions; diff --git a/public/Nitrocid.Addons/Nitrocid.Extras.BassBoom/Commands/PlaySound.cs b/public/Nitrocid.Addons/Nitrocid.Extras.BassBoom/Commands/PlaySound.cs index 55715d2103..1c968f202d 100644 --- a/public/Nitrocid.Addons/Nitrocid.Extras.BassBoom/Commands/PlaySound.cs +++ b/public/Nitrocid.Addons/Nitrocid.Extras.BassBoom/Commands/PlaySound.cs @@ -21,7 +21,6 @@ using BassBoom.Basolia.Format; using BassBoom.Basolia.Playback; using Nitrocid.ConsoleBase.Colors; -using Terminaux.Inputs; using Nitrocid.ConsoleBase.Writers; using Terminaux.Writer.ConsoleWriters; using Nitrocid.Files; diff --git a/public/Nitrocid.Addons/Nitrocid.Extras.BassBoom/Player/PlayerTui.cs b/public/Nitrocid.Addons/Nitrocid.Extras.BassBoom/Player/PlayerTui.cs index 707c7f2c3e..73330965c6 100644 --- a/public/Nitrocid.Addons/Nitrocid.Extras.BassBoom/Player/PlayerTui.cs +++ b/public/Nitrocid.Addons/Nitrocid.Extras.BassBoom/Player/PlayerTui.cs @@ -56,8 +56,6 @@ using Nitrocid.Misc.Screensaver; using Nitrocid.Languages; using Terminaux.Writer.FancyWriters; -using Terminaux.Inputs; -using Textify.General; using Terminaux.Base; using Terminaux.Colors.Data; using Terminaux.Base.Extensions; diff --git a/public/Nitrocid.Addons/Nitrocid.Extras.Calendar/Calendar/CalendarTui.cs b/public/Nitrocid.Addons/Nitrocid.Extras.Calendar/Calendar/CalendarTui.cs index 8c54673e0a..5f938ce905 100644 --- a/public/Nitrocid.Addons/Nitrocid.Extras.Calendar/Calendar/CalendarTui.cs +++ b/public/Nitrocid.Addons/Nitrocid.Extras.Calendar/Calendar/CalendarTui.cs @@ -30,7 +30,6 @@ using Terminaux.Writer.ConsoleWriters; using Nitrocid.ConsoleBase.Colors; using Terminaux.Base.Buffered; -using Terminaux.Inputs; using Nitrocid.Languages; using Terminaux.Inputs.Interactive; using Terminaux.Writer.FancyWriters; diff --git a/public/Nitrocid.Addons/Nitrocid.Extras.Contacts/Contacts/Interactives/ContactsManagerCli.cs b/public/Nitrocid.Addons/Nitrocid.Extras.Contacts/Contacts/Interactives/ContactsManagerCli.cs index b6013186e7..acb7115d07 100644 --- a/public/Nitrocid.Addons/Nitrocid.Extras.Contacts/Contacts/Interactives/ContactsManagerCli.cs +++ b/public/Nitrocid.Addons/Nitrocid.Extras.Contacts/Contacts/Interactives/ContactsManagerCli.cs @@ -21,7 +21,6 @@ using System.Collections.Generic; using VisualCard.Parts; using System.Text; -using System.Collections; using Nitrocid.Kernel.Debugging; using Terminaux.Inputs.Interactive; using Terminaux.Inputs.Styles.Infobox; diff --git a/public/Nitrocid.Addons/Nitrocid.Extras.Docking/Dock/Docks/DigitalClock.cs b/public/Nitrocid.Addons/Nitrocid.Extras.Docking/Dock/Docks/DigitalClock.cs index 8084385c92..b8b470e53c 100644 --- a/public/Nitrocid.Addons/Nitrocid.Extras.Docking/Dock/Docks/DigitalClock.cs +++ b/public/Nitrocid.Addons/Nitrocid.Extras.Docking/Dock/Docks/DigitalClock.cs @@ -20,7 +20,6 @@ using Figletize; using Terminaux.Base.Buffered; using Nitrocid.ConsoleBase.Colors; -using Terminaux.Inputs; using Terminaux.Writer.FancyWriters; using Nitrocid.Kernel.Debugging; using Nitrocid.Kernel.Exceptions; diff --git a/public/Nitrocid.Addons/Nitrocid.Extras.FtpShell/FTP/FTPShellInfo.cs b/public/Nitrocid.Addons/Nitrocid.Extras.FtpShell/FTP/FTPShellInfo.cs index 4e623fed4c..012ec82f40 100644 --- a/public/Nitrocid.Addons/Nitrocid.Extras.FtpShell/FTP/FTPShellInfo.cs +++ b/public/Nitrocid.Addons/Nitrocid.Extras.FtpShell/FTP/FTPShellInfo.cs @@ -37,8 +37,8 @@ internal class FTPShellInfo : BaseShellInfo, IShellInfo /// /// FTP commands /// - public override List Commands => new() - { + public override List Commands => + [ new CommandInfo("cat", /* Localizable */ "Reads the content of a remote file to the console", [ new CommandArgumentInfo(new[] @@ -223,7 +223,7 @@ internal class FTPShellInfo : BaseShellInfo, IShellInfo new CommandArgumentPart(true, "a/b") }) ], new TypeCommand()), - }; + ]; public override Dictionary ShellPresets => new() { diff --git a/public/Nitrocid.Addons/Nitrocid.Extras.FtpShell/Tools/FTPTools.cs b/public/Nitrocid.Addons/Nitrocid.Extras.FtpShell/Tools/FTPTools.cs index 9c5dfcb8dc..7ab270b4a6 100644 --- a/public/Nitrocid.Addons/Nitrocid.Extras.FtpShell/Tools/FTPTools.cs +++ b/public/Nitrocid.Addons/Nitrocid.Extras.FtpShell/Tools/FTPTools.cs @@ -24,7 +24,6 @@ using FluentFTP.Client.BaseClient; using Nitrocid.Extras.FtpShell.FTP; using Nitrocid.Kernel.Debugging; -using Terminaux.Inputs; using Nitrocid.ConsoleBase.Writers; using Nitrocid.Languages; using Terminaux.Writer.FancyWriters; diff --git a/public/Nitrocid.Addons/Nitrocid.Extras.GitShell/Git/GitShellInfo.cs b/public/Nitrocid.Addons/Nitrocid.Extras.GitShell/Git/GitShellInfo.cs index 86347e0bdf..f825e53533 100644 --- a/public/Nitrocid.Addons/Nitrocid.Extras.GitShell/Git/GitShellInfo.cs +++ b/public/Nitrocid.Addons/Nitrocid.Extras.GitShell/Git/GitShellInfo.cs @@ -37,8 +37,8 @@ internal class GitShellInfo : BaseShellInfo, IShellInfo /// /// Git commands /// - public override List Commands => new() - { + public override List Commands => + [ new CommandInfo("blame", /* Localizable */ "Fetches the list of changes in a file line by line", [ new CommandArgumentInfo(new[] @@ -219,7 +219,7 @@ internal class GitShellInfo : BaseShellInfo, IShellInfo [ new CommandArgumentInfo() ], new UnstageAllCommand()), - }; + ]; public override Dictionary ShellPresets => new() { diff --git a/public/Nitrocid.Addons/Nitrocid.Extras.HttpShell/HTTP/HTTPShellInfo.cs b/public/Nitrocid.Addons/Nitrocid.Extras.HttpShell/HTTP/HTTPShellInfo.cs index ebdbe36137..e41877d45e 100644 --- a/public/Nitrocid.Addons/Nitrocid.Extras.HttpShell/HTTP/HTTPShellInfo.cs +++ b/public/Nitrocid.Addons/Nitrocid.Extras.HttpShell/HTTP/HTTPShellInfo.cs @@ -36,8 +36,8 @@ internal class HTTPShellInfo : BaseShellInfo, IShellInfo /// /// HTTP commands /// - public override List Commands => new() - { + public override List Commands => + [ new CommandInfo("addheader", /* Localizable */ "Adds a header with the key and the value to all the upcoming requests", [ new CommandArgumentInfo(new[] @@ -146,7 +146,7 @@ internal class HTTPShellInfo : BaseShellInfo, IShellInfo new CommandArgumentPart(true, "userAgent") }) ], new SetAgentCommand()), - }; + ]; public override Dictionary ShellPresets => new() { diff --git a/public/Nitrocid.Addons/Nitrocid.Extras.JsonShell/Json/JsonShellInfo.cs b/public/Nitrocid.Addons/Nitrocid.Extras.JsonShell/Json/JsonShellInfo.cs index 802640a884..ba31aa0ad1 100644 --- a/public/Nitrocid.Addons/Nitrocid.Extras.JsonShell/Json/JsonShellInfo.cs +++ b/public/Nitrocid.Addons/Nitrocid.Extras.JsonShell/Json/JsonShellInfo.cs @@ -37,8 +37,8 @@ internal class JsonShellInfo : BaseShellInfo, IShellInfo /// /// JSON commands /// - public override List Commands => new() - { + public override List Commands => + [ new CommandInfo("add", /* Localizable */ "Adds a new array, object, or property", [ new CommandArgumentInfo( @@ -161,7 +161,7 @@ internal class JsonShellInfo : BaseShellInfo, IShellInfo [ new CommandArgumentInfo() ], new TuiCommand()), - }; + ]; public override Dictionary ShellPresets => new() { diff --git a/public/Nitrocid.Addons/Nitrocid.Extras.MailShell/Mail/MailShellInfo.cs b/public/Nitrocid.Addons/Nitrocid.Extras.MailShell/Mail/MailShellInfo.cs index 389fd7bd1d..b5d2c89e32 100644 --- a/public/Nitrocid.Addons/Nitrocid.Extras.MailShell/Mail/MailShellInfo.cs +++ b/public/Nitrocid.Addons/Nitrocid.Extras.MailShell/Mail/MailShellInfo.cs @@ -36,8 +36,8 @@ internal class MailShellInfo : BaseShellInfo, IShellInfo /// /// Mail commands /// - public override List Commands => new() - { + public override List Commands => + [ new CommandInfo("cd", /* Localizable */ "Changes current mail directory", [ new CommandArgumentInfo(new[] @@ -163,7 +163,7 @@ internal class MailShellInfo : BaseShellInfo, IShellInfo [ new CommandArgumentInfo() ], new SendEncCommand()), - }; + ]; public override Dictionary ShellPresets => new() { diff --git a/public/Nitrocid.Addons/Nitrocid.Extras.MailShell/Tools/Directory/MailManager.cs b/public/Nitrocid.Addons/Nitrocid.Extras.MailShell/Tools/Directory/MailManager.cs index af11f73fa6..a0d4adda37 100644 --- a/public/Nitrocid.Addons/Nitrocid.Extras.MailShell/Tools/Directory/MailManager.cs +++ b/public/Nitrocid.Addons/Nitrocid.Extras.MailShell/Tools/Directory/MailManager.cs @@ -30,7 +30,6 @@ using Nitrocid.Kernel.Debugging; using Nitrocid.Kernel.Exceptions; using Nitrocid.Languages; -using Textify.General; using Terminaux.Base.Extensions; namespace Nitrocid.Extras.MailShell.Tools.Directory diff --git a/public/Nitrocid.Addons/Nitrocid.Extras.RssShell/RSS/Interactive/RssReaderCli.cs b/public/Nitrocid.Addons/Nitrocid.Extras.RssShell/RSS/Interactive/RssReaderCli.cs index e71a0cf3c0..9d14671c8e 100644 --- a/public/Nitrocid.Addons/Nitrocid.Extras.RssShell/RSS/Interactive/RssReaderCli.cs +++ b/public/Nitrocid.Addons/Nitrocid.Extras.RssShell/RSS/Interactive/RssReaderCli.cs @@ -23,7 +23,6 @@ using Nitrocid.Kernel.Exceptions; using Nitrocid.Languages; using System; -using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Linq; diff --git a/public/Nitrocid.Addons/Nitrocid.Extras.RssShell/RSS/RSSShellInfo.cs b/public/Nitrocid.Addons/Nitrocid.Extras.RssShell/RSS/RSSShellInfo.cs index 0bd250f6fa..a9263a028d 100644 --- a/public/Nitrocid.Addons/Nitrocid.Extras.RssShell/RSS/RSSShellInfo.cs +++ b/public/Nitrocid.Addons/Nitrocid.Extras.RssShell/RSS/RSSShellInfo.cs @@ -37,8 +37,8 @@ internal class RSSShellInfo : BaseShellInfo, IShellInfo /// /// RSS commands /// - public override List Commands => new() - { + public override List Commands => + [ new CommandInfo("articleinfo", /* Localizable */ "Gets the article info", [ new CommandArgumentInfo(new[] @@ -116,7 +116,7 @@ internal class RSSShellInfo : BaseShellInfo, IShellInfo [ new CommandArgumentInfo() ], new UnbookmarkCommand()), - }; + ]; public override Dictionary ShellPresets => new() { diff --git a/public/Nitrocid.Addons/Nitrocid.Extras.SftpShell/SFTP/SFTPShellInfo.cs b/public/Nitrocid.Addons/Nitrocid.Extras.SftpShell/SFTP/SFTPShellInfo.cs index 0c506eab2e..6a5bd477e6 100644 --- a/public/Nitrocid.Addons/Nitrocid.Extras.SftpShell/SFTP/SFTPShellInfo.cs +++ b/public/Nitrocid.Addons/Nitrocid.Extras.SftpShell/SFTP/SFTPShellInfo.cs @@ -37,8 +37,8 @@ internal class SFTPShellInfo : BaseShellInfo, IShellInfo /// /// SFTP commands /// - public override List Commands => new() - { + public override List Commands => + [ new CommandInfo("cat", /* Localizable */ "Reads the content of a remote file to the console", [ new CommandArgumentInfo(new[] @@ -133,7 +133,7 @@ internal class SFTPShellInfo : BaseShellInfo, IShellInfo [ new CommandArgumentInfo() ], new PwdrCommand()), - }; + ]; public override Dictionary ShellPresets => new() { diff --git a/public/Nitrocid.Addons/Nitrocid.Extras.SftpShell/SSH/SSHTools.cs b/public/Nitrocid.Addons/Nitrocid.Extras.SftpShell/SSH/SSHTools.cs index dd8ab30f45..9b52e2f449 100644 --- a/public/Nitrocid.Addons/Nitrocid.Extras.SftpShell/SSH/SSHTools.cs +++ b/public/Nitrocid.Addons/Nitrocid.Extras.SftpShell/SSH/SSHTools.cs @@ -30,7 +30,6 @@ using Nitrocid.ConsoleBase.Writers; using Nitrocid.Languages; using Nitrocid.ConsoleBase.Colors; -using Terminaux.Inputs; using Nitrocid.Files.Operations.Querying; using Terminaux.Writer.ConsoleWriters; using Nitrocid.Kernel; diff --git a/public/Nitrocid.Addons/Nitrocid.Extras.SqlShell/Sql/SqlShellInfo.cs b/public/Nitrocid.Addons/Nitrocid.Extras.SqlShell/Sql/SqlShellInfo.cs index 81e3858826..30209949a7 100644 --- a/public/Nitrocid.Addons/Nitrocid.Extras.SqlShell/Sql/SqlShellInfo.cs +++ b/public/Nitrocid.Addons/Nitrocid.Extras.SqlShell/Sql/SqlShellInfo.cs @@ -36,8 +36,8 @@ internal class SqlShellInfo : BaseShellInfo, IShellInfo /// /// Sql commands /// - public override List Commands => new() - { + public override List Commands => + [ new CommandInfo("cmd", /* Localizable */ "Executes an SQL query", [ new CommandArgumentInfo() @@ -52,7 +52,7 @@ internal class SqlShellInfo : BaseShellInfo, IShellInfo [ new CommandArgumentInfo() ], new TuiCommand()), - }; + ]; public override Dictionary ShellPresets => new() { diff --git a/public/Nitrocid.Addons/Nitrocid.Extras.Timers/Timers/StopwatchScreen.cs b/public/Nitrocid.Addons/Nitrocid.Extras.Timers/Timers/StopwatchScreen.cs index 551de1ebc8..948accc7d8 100644 --- a/public/Nitrocid.Addons/Nitrocid.Extras.Timers/Timers/StopwatchScreen.cs +++ b/public/Nitrocid.Addons/Nitrocid.Extras.Timers/Timers/StopwatchScreen.cs @@ -25,7 +25,6 @@ using Terminaux.Writer.ConsoleWriters; using Nitrocid.ConsoleBase.Colors; using Nitrocid.Languages; -using Terminaux.Inputs; using Terminaux.Base.Buffered; using Terminaux.Base; using Terminaux.Base.Extensions; diff --git a/public/Nitrocid.Addons/Nitrocid.Extras.Timers/Timers/TimerScreen.cs b/public/Nitrocid.Addons/Nitrocid.Extras.Timers/Timers/TimerScreen.cs index 72554c81a1..f98073436c 100644 --- a/public/Nitrocid.Addons/Nitrocid.Extras.Timers/Timers/TimerScreen.cs +++ b/public/Nitrocid.Addons/Nitrocid.Extras.Timers/Timers/TimerScreen.cs @@ -27,7 +27,6 @@ using Nitrocid.ConsoleBase.Colors; using Nitrocid.Kernel.Time.Renderers; using Nitrocid.Languages; -using Terminaux.Inputs; using Terminaux.Base.Buffered; using System.Text; using Terminaux.Writer.FancyWriters; diff --git a/public/Nitrocid.Addons/Nitrocid.Legacy.HddUncleaner/HddUncleaner2015.cs b/public/Nitrocid.Addons/Nitrocid.Legacy.HddUncleaner/HddUncleaner2015.cs index b5d8b8f603..b61fb05fd5 100644 --- a/public/Nitrocid.Addons/Nitrocid.Legacy.HddUncleaner/HddUncleaner2015.cs +++ b/public/Nitrocid.Addons/Nitrocid.Legacy.HddUncleaner/HddUncleaner2015.cs @@ -18,7 +18,6 @@ // using Nitrocid.ConsoleBase.Colors; -using Terminaux.Inputs; using Nitrocid.ConsoleBase.Writers; using Terminaux.Writer.ConsoleWriters; using Nitrocid.Languages; diff --git a/public/Nitrocid.Addons/Nitrocid.SplashPacks/Splashes/PowerLineProgress.cs b/public/Nitrocid.Addons/Nitrocid.SplashPacks/Splashes/PowerLineProgress.cs index 16a0b240d0..0973604ec1 100644 --- a/public/Nitrocid.Addons/Nitrocid.SplashPacks/Splashes/PowerLineProgress.cs +++ b/public/Nitrocid.Addons/Nitrocid.SplashPacks/Splashes/PowerLineProgress.cs @@ -27,7 +27,6 @@ using Nitrocid.ConsoleBase.Colors; using Nitrocid.Misc.Text; using Terminaux.Writer.FancyWriters; -using Textify.General; using Terminaux.Base; using Terminaux.Base.Extensions; diff --git a/public/Nitrocid.Addons/Nitrocid.SplashPacks/Splashes/Progress.cs b/public/Nitrocid.Addons/Nitrocid.SplashPacks/Splashes/Progress.cs index 59fafe024b..dcfcd4b49a 100644 --- a/public/Nitrocid.Addons/Nitrocid.SplashPacks/Splashes/Progress.cs +++ b/public/Nitrocid.Addons/Nitrocid.SplashPacks/Splashes/Progress.cs @@ -27,7 +27,6 @@ using Nitrocid.ConsoleBase.Colors; using Nitrocid.Misc.Text; using Terminaux.Writer.FancyWriters; -using Textify.General; using Terminaux.Base; using Terminaux.Base.Extensions; diff --git a/public/Nitrocid.Addons/Nitrocid.SplashPacks/Splashes/Simple.cs b/public/Nitrocid.Addons/Nitrocid.SplashPacks/Splashes/Simple.cs index 369c4d214e..1d7b59efae 100644 --- a/public/Nitrocid.Addons/Nitrocid.SplashPacks/Splashes/Simple.cs +++ b/public/Nitrocid.Addons/Nitrocid.SplashPacks/Splashes/Simple.cs @@ -25,7 +25,6 @@ using Nitrocid.Kernel.Debugging; using Nitrocid.Misc.Splash; using Nitrocid.Misc.Text; -using Textify.General; using Terminaux.Base; using Terminaux.Base.Extensions; diff --git a/public/Nitrocid/ConsoleBase/ConsoleTools.cs b/public/Nitrocid/ConsoleBase/ConsoleTools.cs index e51303a3c0..79d294fbb0 100644 --- a/public/Nitrocid/ConsoleBase/ConsoleTools.cs +++ b/public/Nitrocid/ConsoleBase/ConsoleTools.cs @@ -31,7 +31,6 @@ using Terminaux.Base.Buffered; using Terminaux.Sequences.Builder; using Nitrocid.Languages; -using Terminaux.Inputs; using Terminaux.Writer.FancyWriters; using Terminaux.Reader; diff --git a/public/Nitrocid/ConsoleBase/Writers/TextDynamicWriters.cs b/public/Nitrocid/ConsoleBase/Writers/TextDynamicWriters.cs index 2649c617df..70f40a9c73 100644 --- a/public/Nitrocid/ConsoleBase/Writers/TextDynamicWriters.cs +++ b/public/Nitrocid/ConsoleBase/Writers/TextDynamicWriters.cs @@ -23,7 +23,6 @@ using Nitrocid.Languages; using System; using System.Threading; -using Terminaux.Writer.ConsoleWriters; using Terminaux.Writer.DynamicWriters; namespace Nitrocid.ConsoleBase.Writers diff --git a/public/Nitrocid/Files/Editors/HexEdit/HexEditInteractive.cs b/public/Nitrocid/Files/Editors/HexEdit/HexEditInteractive.cs index d995d8474f..cc8cf50fa4 100644 --- a/public/Nitrocid/Files/Editors/HexEdit/HexEditInteractive.cs +++ b/public/Nitrocid/Files/Editors/HexEdit/HexEditInteractive.cs @@ -39,7 +39,6 @@ using Textify.General; using Terminaux.Colors; using Terminaux.Base; -using Terminaux.Inputs; using Terminaux.Reader; using Terminaux.Base.Extensions; diff --git a/public/Nitrocid/Files/Editors/TextEdit/TextEditInteractive.cs b/public/Nitrocid/Files/Editors/TextEdit/TextEditInteractive.cs index b690fa9659..679719d9d5 100644 --- a/public/Nitrocid/Files/Editors/TextEdit/TextEditInteractive.cs +++ b/public/Nitrocid/Files/Editors/TextEdit/TextEditInteractive.cs @@ -37,7 +37,6 @@ using Textify.General; using Terminaux.Colors; using Terminaux.Base; -using Terminaux.Inputs; using Terminaux.Reader; using Terminaux.Base.Extensions; diff --git a/public/Nitrocid/Kernel/Configuration/Settings/KeyInputs/CharSettingsKeyInput.cs b/public/Nitrocid/Kernel/Configuration/Settings/KeyInputs/CharSettingsKeyInput.cs index b9a0c0eb8d..637537543d 100644 --- a/public/Nitrocid/Kernel/Configuration/Settings/KeyInputs/CharSettingsKeyInput.cs +++ b/public/Nitrocid/Kernel/Configuration/Settings/KeyInputs/CharSettingsKeyInput.cs @@ -25,7 +25,6 @@ using System; using Textify.General; using Terminaux.Base; -using Terminaux.Inputs; using Terminaux.Reader; namespace Nitrocid.Kernel.Configuration.Settings.KeyInputs diff --git a/public/Nitrocid/Kernel/Configuration/Settings/KeyInputs/DoubleSettingsKeyInput.cs b/public/Nitrocid/Kernel/Configuration/Settings/KeyInputs/DoubleSettingsKeyInput.cs index e9643b23d4..e2eac203cf 100644 --- a/public/Nitrocid/Kernel/Configuration/Settings/KeyInputs/DoubleSettingsKeyInput.cs +++ b/public/Nitrocid/Kernel/Configuration/Settings/KeyInputs/DoubleSettingsKeyInput.cs @@ -23,7 +23,6 @@ using Nitrocid.Kernel.Debugging; using Nitrocid.Languages; using Terminaux.Base; -using Terminaux.Inputs; using Terminaux.Inputs.Styles.Infobox; using Terminaux.Reader; diff --git a/public/Nitrocid/Kernel/Configuration/Settings/KeyInputs/IntSettingsKeyInput.cs b/public/Nitrocid/Kernel/Configuration/Settings/KeyInputs/IntSettingsKeyInput.cs index 2b792801c6..134ea368bd 100644 --- a/public/Nitrocid/Kernel/Configuration/Settings/KeyInputs/IntSettingsKeyInput.cs +++ b/public/Nitrocid/Kernel/Configuration/Settings/KeyInputs/IntSettingsKeyInput.cs @@ -23,7 +23,6 @@ using Nitrocid.Kernel.Debugging; using Nitrocid.Languages; using Terminaux.Base; -using Terminaux.Inputs; using Terminaux.Inputs.Styles.Infobox; using Terminaux.Reader; diff --git a/public/Nitrocid/Kernel/Configuration/Settings/KeyInputs/IntSliderSettingsKeyInput.cs b/public/Nitrocid/Kernel/Configuration/Settings/KeyInputs/IntSliderSettingsKeyInput.cs index 61b0d810a7..824cfd5cb6 100644 --- a/public/Nitrocid/Kernel/Configuration/Settings/KeyInputs/IntSliderSettingsKeyInput.cs +++ b/public/Nitrocid/Kernel/Configuration/Settings/KeyInputs/IntSliderSettingsKeyInput.cs @@ -25,7 +25,6 @@ using Nitrocid.Languages; using System; using Terminaux.Base; -using Terminaux.Inputs; using Terminaux.Reader; namespace Nitrocid.Kernel.Configuration.Settings.KeyInputs diff --git a/public/Nitrocid/Kernel/Configuration/Settings/KeyInputs/SelectionSettingsKeyInput.cs b/public/Nitrocid/Kernel/Configuration/Settings/KeyInputs/SelectionSettingsKeyInput.cs index 2e8bc7b65a..71a7a71a97 100644 --- a/public/Nitrocid/Kernel/Configuration/Settings/KeyInputs/SelectionSettingsKeyInput.cs +++ b/public/Nitrocid/Kernel/Configuration/Settings/KeyInputs/SelectionSettingsKeyInput.cs @@ -29,7 +29,6 @@ using System.Collections.Generic; using System.Linq; using System.Reflection; -using Terminaux.Inputs; using Terminaux.Reader; namespace Nitrocid.Kernel.Configuration.Settings.KeyInputs diff --git a/public/Nitrocid/Kernel/Debugging/Testing/Facades/FacadeData/CliDoublePaneSlowTestData.cs b/public/Nitrocid/Kernel/Debugging/Testing/Facades/FacadeData/CliDoublePaneSlowTestData.cs index e6e53fc35c..ff19f228e6 100644 --- a/public/Nitrocid/Kernel/Debugging/Testing/Facades/FacadeData/CliDoublePaneSlowTestData.cs +++ b/public/Nitrocid/Kernel/Debugging/Testing/Facades/FacadeData/CliDoublePaneSlowTestData.cs @@ -20,7 +20,6 @@ using Terminaux.Inputs.Interactive; using Nitrocid.Languages; using System; -using System.Collections; using System.Collections.Generic; namespace Nitrocid.Kernel.Debugging.Testing.Facades.FacadeData diff --git a/public/Nitrocid/Kernel/Debugging/Testing/Facades/FacadeData/CliDoublePaneTestData.cs b/public/Nitrocid/Kernel/Debugging/Testing/Facades/FacadeData/CliDoublePaneTestData.cs index 0dd8461c34..ce11e37db6 100644 --- a/public/Nitrocid/Kernel/Debugging/Testing/Facades/FacadeData/CliDoublePaneTestData.cs +++ b/public/Nitrocid/Kernel/Debugging/Testing/Facades/FacadeData/CliDoublePaneTestData.cs @@ -20,7 +20,6 @@ using Terminaux.Inputs.Interactive; using Nitrocid.Languages; using System; -using System.Collections; using System.Collections.Generic; namespace Nitrocid.Kernel.Debugging.Testing.Facades.FacadeData diff --git a/public/Nitrocid/Kernel/Debugging/Testing/Facades/FacadeData/CliInfoPaneSlowTestData.cs b/public/Nitrocid/Kernel/Debugging/Testing/Facades/FacadeData/CliInfoPaneSlowTestData.cs index c7205e8121..0949caf421 100644 --- a/public/Nitrocid/Kernel/Debugging/Testing/Facades/FacadeData/CliInfoPaneSlowTestData.cs +++ b/public/Nitrocid/Kernel/Debugging/Testing/Facades/FacadeData/CliInfoPaneSlowTestData.cs @@ -20,7 +20,6 @@ using Terminaux.Inputs.Interactive; using Nitrocid.Languages; using System; -using System.Collections; using System.Collections.Generic; namespace Nitrocid.Kernel.Debugging.Testing.Facades.FacadeData diff --git a/public/Nitrocid/Kernel/Debugging/Testing/Facades/FacadeData/CliInfoPaneSlowTestRefreshingData.cs b/public/Nitrocid/Kernel/Debugging/Testing/Facades/FacadeData/CliInfoPaneSlowTestRefreshingData.cs index 56a51928b1..285d2f98a3 100644 --- a/public/Nitrocid/Kernel/Debugging/Testing/Facades/FacadeData/CliInfoPaneSlowTestRefreshingData.cs +++ b/public/Nitrocid/Kernel/Debugging/Testing/Facades/FacadeData/CliInfoPaneSlowTestRefreshingData.cs @@ -20,7 +20,6 @@ using Terminaux.Inputs.Interactive; using Nitrocid.Languages; using System; -using System.Collections; using System.Collections.Generic; namespace Nitrocid.Kernel.Debugging.Testing.Facades.FacadeData diff --git a/public/Nitrocid/Kernel/Debugging/Testing/Facades/FacadeData/CliInfoPaneTestData.cs b/public/Nitrocid/Kernel/Debugging/Testing/Facades/FacadeData/CliInfoPaneTestData.cs index c8e6d8b6f0..9edf093586 100644 --- a/public/Nitrocid/Kernel/Debugging/Testing/Facades/FacadeData/CliInfoPaneTestData.cs +++ b/public/Nitrocid/Kernel/Debugging/Testing/Facades/FacadeData/CliInfoPaneTestData.cs @@ -20,7 +20,6 @@ using Terminaux.Inputs.Interactive; using Nitrocid.Languages; using System; -using System.Collections; using System.Collections.Generic; namespace Nitrocid.Kernel.Debugging.Testing.Facades.FacadeData diff --git a/public/Nitrocid/Kernel/Debugging/Testing/Facades/FacadeData/CliInfoPaneTestRefreshingData.cs b/public/Nitrocid/Kernel/Debugging/Testing/Facades/FacadeData/CliInfoPaneTestRefreshingData.cs index c566c1fcde..bfc6538260 100644 --- a/public/Nitrocid/Kernel/Debugging/Testing/Facades/FacadeData/CliInfoPaneTestRefreshingData.cs +++ b/public/Nitrocid/Kernel/Debugging/Testing/Facades/FacadeData/CliInfoPaneTestRefreshingData.cs @@ -20,7 +20,6 @@ using Terminaux.Inputs.Interactive; using Nitrocid.Languages; using System; -using System.Collections; using System.Collections.Generic; namespace Nitrocid.Kernel.Debugging.Testing.Facades.FacadeData diff --git a/public/Nitrocid/Kernel/Debugging/Testing/Facades/TestScreen.cs b/public/Nitrocid/Kernel/Debugging/Testing/Facades/TestScreen.cs index a98801d2c0..283e9460d7 100644 --- a/public/Nitrocid/Kernel/Debugging/Testing/Facades/TestScreen.cs +++ b/public/Nitrocid/Kernel/Debugging/Testing/Facades/TestScreen.cs @@ -27,7 +27,6 @@ using Terminaux.Sequences.Builder.Types; using Terminaux.Base; using Terminaux.Colors.Data; -using Terminaux.Inputs; using Terminaux.Reader; namespace Nitrocid.Kernel.Debugging.Testing.Facades diff --git a/public/Nitrocid/Kernel/Exceptions/KernelPanic.cs b/public/Nitrocid/Kernel/Exceptions/KernelPanic.cs index b7da38f6a3..3add176aa8 100644 --- a/public/Nitrocid/Kernel/Exceptions/KernelPanic.cs +++ b/public/Nitrocid/Kernel/Exceptions/KernelPanic.cs @@ -40,7 +40,6 @@ using System.Text; using System.Threading; using Textify.General; -using Terminaux.Inputs; using Terminaux.Reader; namespace Nitrocid.Kernel.Exceptions diff --git a/public/Nitrocid/Kernel/KernelFirstRun.cs b/public/Nitrocid/Kernel/KernelFirstRun.cs index 0aba201fb5..efffd1a649 100644 --- a/public/Nitrocid/Kernel/KernelFirstRun.cs +++ b/public/Nitrocid/Kernel/KernelFirstRun.cs @@ -29,7 +29,6 @@ using Terminaux.Colors; using Textify.General; using Terminaux.Base; -using Terminaux.Inputs; using Terminaux.Reader; namespace Nitrocid.Kernel diff --git a/public/Nitrocid/Kernel/Starting/KernelInitializers.cs b/public/Nitrocid/Kernel/Starting/KernelInitializers.cs index 38bf9b6df8..4f9ad25746 100644 --- a/public/Nitrocid/Kernel/Starting/KernelInitializers.cs +++ b/public/Nitrocid/Kernel/Starting/KernelInitializers.cs @@ -55,7 +55,6 @@ using Terminaux.Colors; using Nitrocid.ConsoleBase.Writers.MiscWriters; using Terminaux.Base.Checks; -using Terminaux.Base; using Nitrocid.Users.Login.Motd; using Nitrocid.Network.Types.RPC; using Nitrocid.Network.SpeedDial; diff --git a/public/Nitrocid/Misc/Interactives/FileManagerCli.cs b/public/Nitrocid/Misc/Interactives/FileManagerCli.cs index 8702303309..f0779b5c9a 100644 --- a/public/Nitrocid/Misc/Interactives/FileManagerCli.cs +++ b/public/Nitrocid/Misc/Interactives/FileManagerCli.cs @@ -22,7 +22,6 @@ using System.IO; using System.Linq; using System.Text; -using System.Collections; using System.Reflection; using Terminaux.Sequences; using Nitrocid.Kernel.Configuration; @@ -120,7 +119,7 @@ public override IEnumerable PrimaryDataSource { DebugWriter.WriteDebug(DebugLevel.E, "Failed to get current directory list for the first pane [{0}]: {1}", firstPanePath, ex.Message); DebugWriter.WriteDebugStackTrace(ex); - return new List(); + return []; } } } @@ -143,7 +142,7 @@ public override IEnumerable SecondaryDataSource { DebugWriter.WriteDebug(DebugLevel.E, "Failed to get current directory list for the second pane [{0}]: {1}", secondPanePath, ex.Message); DebugWriter.WriteDebugStackTrace(ex); - return new List(); + return []; } } } diff --git a/public/Nitrocid/Misc/Interactives/FileSelectorCli.cs b/public/Nitrocid/Misc/Interactives/FileSelectorCli.cs index 37da85a584..043c6af89d 100644 --- a/public/Nitrocid/Misc/Interactives/FileSelectorCli.cs +++ b/public/Nitrocid/Misc/Interactives/FileSelectorCli.cs @@ -22,7 +22,6 @@ using System.IO; using System.Linq; using System.Text; -using System.Collections; using System.Reflection; using Terminaux.Sequences; using Nitrocid.Kernel.Configuration; @@ -107,7 +106,7 @@ public override IEnumerable PrimaryDataSource { DebugWriter.WriteDebug(DebugLevel.E, "Failed to get current directory list for the first pane [{0}]: {1}", firstPanePath, ex.Message); DebugWriter.WriteDebugStackTrace(ex); - return new List(); + return []; } } } diff --git a/public/Nitrocid/Misc/Interactives/FilesSelectorCli.cs b/public/Nitrocid/Misc/Interactives/FilesSelectorCli.cs index 9ae583147b..c864f07f91 100644 --- a/public/Nitrocid/Misc/Interactives/FilesSelectorCli.cs +++ b/public/Nitrocid/Misc/Interactives/FilesSelectorCli.cs @@ -22,7 +22,6 @@ using System.IO; using System.Linq; using System.Text; -using System.Collections; using System.Reflection; using Terminaux.Sequences; using Nitrocid.Kernel.Configuration; @@ -109,7 +108,7 @@ public override IEnumerable PrimaryDataSource { DebugWriter.WriteDebug(DebugLevel.E, "Failed to get current directory list for the first pane [{0}]: {1}", firstPanePath, ex.Message); DebugWriter.WriteDebugStackTrace(ex); - return new List(); + return []; } } } diff --git a/public/Nitrocid/Misc/Interactives/FolderSelectorCli.cs b/public/Nitrocid/Misc/Interactives/FolderSelectorCli.cs index a290243879..4737896907 100644 --- a/public/Nitrocid/Misc/Interactives/FolderSelectorCli.cs +++ b/public/Nitrocid/Misc/Interactives/FolderSelectorCli.cs @@ -22,7 +22,6 @@ using System.IO; using System.Linq; using System.Text; -using System.Collections; using System.Reflection; using Terminaux.Sequences; using Nitrocid.Kernel.Configuration; @@ -109,7 +108,7 @@ public override IEnumerable PrimaryDataSource { DebugWriter.WriteDebug(DebugLevel.E, "Failed to get current directory list for the first pane [{0}]: {1}", firstPanePath, ex.Message); DebugWriter.WriteDebugStackTrace(ex); - return new List(); + return []; } } } diff --git a/public/Nitrocid/Misc/Interactives/FoldersSelectorCli.cs b/public/Nitrocid/Misc/Interactives/FoldersSelectorCli.cs index 0a22b6367e..0e8076496c 100644 --- a/public/Nitrocid/Misc/Interactives/FoldersSelectorCli.cs +++ b/public/Nitrocid/Misc/Interactives/FoldersSelectorCli.cs @@ -22,7 +22,6 @@ using System.IO; using System.Linq; using System.Text; -using System.Collections; using System.Reflection; using Terminaux.Sequences; using Nitrocid.Kernel.Configuration; @@ -111,7 +110,7 @@ public override IEnumerable PrimaryDataSource { DebugWriter.WriteDebug(DebugLevel.E, "Failed to get current directory list for the first pane [{0}]: {1}", firstPanePath, ex.Message); DebugWriter.WriteDebugStackTrace(ex); - return new List(); + return []; } } } diff --git a/public/Nitrocid/Misc/Interactives/ManualViewerCli.cs b/public/Nitrocid/Misc/Interactives/ManualViewerCli.cs index 0a8e3bebf5..54add6f19b 100644 --- a/public/Nitrocid/Misc/Interactives/ManualViewerCli.cs +++ b/public/Nitrocid/Misc/Interactives/ManualViewerCli.cs @@ -22,7 +22,6 @@ using Nitrocid.Languages; using Nitrocid.Modifications.ManPages; using System; -using System.Collections; using System.Collections.Generic; using System.Text; using Textify.General; diff --git a/public/Nitrocid/Misc/Interactives/TimeZoneShowCli.cs b/public/Nitrocid/Misc/Interactives/TimeZoneShowCli.cs index 2ca2f4c3b5..dae7b1c1d4 100644 --- a/public/Nitrocid/Misc/Interactives/TimeZoneShowCli.cs +++ b/public/Nitrocid/Misc/Interactives/TimeZoneShowCli.cs @@ -18,7 +18,6 @@ // using System.Collections.Generic; -using System.Collections; using Nitrocid.Kernel.Time.Renderers; using Nitrocid.Languages; using Terminaux.Inputs.Interactive; diff --git a/public/Nitrocid/Misc/Notifications/NotificationManager.cs b/public/Nitrocid/Misc/Notifications/NotificationManager.cs index 69bf5e6127..5a49b31a1e 100644 --- a/public/Nitrocid/Misc/Notifications/NotificationManager.cs +++ b/public/Nitrocid/Misc/Notifications/NotificationManager.cs @@ -40,7 +40,6 @@ using Nitrocid.Kernel.Events; using Nitrocid.Files.Operations.Querying; using Nitrocid.Kernel.Power; -using Textify.General; using Terminaux.Base; using Terminaux.Base.Extensions; diff --git a/public/Nitrocid/Shell/ShellBase/Arguments/CommandArgumentPart.cs b/public/Nitrocid/Shell/ShellBase/Arguments/CommandArgumentPart.cs index 8daf162855..b9274336fb 100644 --- a/public/Nitrocid/Shell/ShellBase/Arguments/CommandArgumentPart.cs +++ b/public/Nitrocid/Shell/ShellBase/Arguments/CommandArgumentPart.cs @@ -18,7 +18,6 @@ // using System; -using System.Linq; namespace Nitrocid.Shell.ShellBase.Arguments { diff --git a/public/Nitrocid/Shell/ShellBase/Shells/BaseShellInfo.cs b/public/Nitrocid/Shell/ShellBase/Shells/BaseShellInfo.cs index d7cf76a943..3b21610dd1 100644 --- a/public/Nitrocid/Shell/ShellBase/Shells/BaseShellInfo.cs +++ b/public/Nitrocid/Shell/ShellBase/Shells/BaseShellInfo.cs @@ -41,11 +41,11 @@ public abstract class BaseShellInfo : IShellInfo /// public virtual object ShellLock => new(); /// - public virtual List Commands => new(); + public virtual List Commands => []; /// public virtual List ModCommands => modCommands; /// - public virtual Dictionary ShellPresets => new(); + public virtual Dictionary ShellPresets => []; /// public virtual Dictionary CustomShellPresets => customShellPresets; /// diff --git a/public/Nitrocid/Shell/Shells/Admin/AdminShellInfo.cs b/public/Nitrocid/Shell/Shells/Admin/AdminShellInfo.cs index 4df9f7dba8..b1084eb4c9 100644 --- a/public/Nitrocid/Shell/Shells/Admin/AdminShellInfo.cs +++ b/public/Nitrocid/Shell/Shells/Admin/AdminShellInfo.cs @@ -18,7 +18,6 @@ // using System.Collections.Generic; -using System.Linq; using Nitrocid.Shell.ShellBase.Commands; using Nitrocid.Shell.ShellBase.Shells; using Nitrocid.Arguments; @@ -38,8 +37,8 @@ internal class AdminShellInfo : BaseShellInfo, IShellInfo /// /// Admin commands /// - public override List Commands => new() - { + public override List Commands => + [ new CommandInfo("arghelp", /* Localizable */ "Kernel arguments help system", [ new CommandArgumentInfo(new[] @@ -127,7 +126,7 @@ internal class AdminShellInfo : BaseShellInfo, IShellInfo new CommandArgumentPart(true, "lang/clear") }) ], new UserLangCommand()), - }; + ]; public override Dictionary ShellPresets => new() { diff --git a/public/Nitrocid/Shell/Shells/Debug/Commands/KeyInfo.cs b/public/Nitrocid/Shell/Shells/Debug/Commands/KeyInfo.cs index 6a8b248412..fd354be71d 100644 --- a/public/Nitrocid/Shell/Shells/Debug/Commands/KeyInfo.cs +++ b/public/Nitrocid/Shell/Shells/Debug/Commands/KeyInfo.cs @@ -23,7 +23,6 @@ using Nitrocid.Languages; using Nitrocid.ConsoleBase.Colors; using Terminaux.Writer.ConsoleWriters; -using Terminaux.Inputs; using Terminaux.Reader; namespace Nitrocid.Shell.Shells.Debug.Commands diff --git a/public/Nitrocid/Shell/Shells/Debug/DebugShellInfo.cs b/public/Nitrocid/Shell/Shells/Debug/DebugShellInfo.cs index f6c540e6ae..3e37003455 100644 --- a/public/Nitrocid/Shell/Shells/Debug/DebugShellInfo.cs +++ b/public/Nitrocid/Shell/Shells/Debug/DebugShellInfo.cs @@ -18,7 +18,6 @@ // using System.Collections.Generic; -using System.Linq; using Nitrocid.Shell.ShellBase.Commands; using Nitrocid.Shell.ShellBase.Shells; using Nitrocid.Misc.Reflection; @@ -40,8 +39,8 @@ internal class DebugShellInfo : BaseShellInfo, IShellInfo /// /// Debug commands /// - public override List Commands => new() - { + public override List Commands => + [ new CommandInfo("currentbt", /* Localizable */ "Gets current backtrace", [ new CommandArgumentInfo() @@ -188,7 +187,7 @@ internal class DebugShellInfo : BaseShellInfo, IShellInfo [ new CommandArgumentInfo() ], new ShowMainBufferCommand(), CommandFlags.Wrappable | CommandFlags.RedirectionSupported), - }; + ]; public override Dictionary ShellPresets => new() { diff --git a/public/Nitrocid/Shell/Shells/Hex/HexShellInfo.cs b/public/Nitrocid/Shell/Shells/Hex/HexShellInfo.cs index 57e380bd4c..1c24233b00 100644 --- a/public/Nitrocid/Shell/Shells/Hex/HexShellInfo.cs +++ b/public/Nitrocid/Shell/Shells/Hex/HexShellInfo.cs @@ -36,8 +36,8 @@ internal class HexShellInfo : BaseShellInfo, IShellInfo /// /// Hex commands /// - public override List Commands => new() - { + public override List Commands => + [ new CommandInfo("addbyte", /* Localizable */ "Adds a new byte at the end of the file", [ new CommandArgumentInfo(new[] @@ -148,7 +148,7 @@ internal class HexShellInfo : BaseShellInfo, IShellInfo [ new CommandArgumentInfo() ], new TuiCommand()), - }; + ]; public override Dictionary ShellPresets => new() { diff --git a/public/Nitrocid/Shell/Shells/Text/TextShellInfo.cs b/public/Nitrocid/Shell/Shells/Text/TextShellInfo.cs index 2d17e154bf..122ce5f3e7 100644 --- a/public/Nitrocid/Shell/Shells/Text/TextShellInfo.cs +++ b/public/Nitrocid/Shell/Shells/Text/TextShellInfo.cs @@ -36,8 +36,8 @@ internal class TextShellInfo : BaseShellInfo, IShellInfo /// /// Text commands /// - public override List Commands => new() - { + public override List Commands => + [ new CommandInfo("addline", /* Localizable */ "Adds a new line with text at the end of the file", [ new CommandArgumentInfo(new[] @@ -227,7 +227,7 @@ internal class TextShellInfo : BaseShellInfo, IShellInfo [ new CommandArgumentInfo() ], new TuiCommand()), - }; + ]; public override Dictionary ShellPresets => new() { diff --git a/public/Nitrocid/Shell/Shells/UESH/Commands/Input.cs b/public/Nitrocid/Shell/Shells/UESH/Commands/Input.cs index d0440576ed..87f1b70a79 100644 --- a/public/Nitrocid/Shell/Shells/UESH/Commands/Input.cs +++ b/public/Nitrocid/Shell/Shells/UESH/Commands/Input.cs @@ -17,7 +17,6 @@ // along with this program. If not, see . // -using Terminaux.Inputs.Styles; using Nitrocid.Shell.ShellBase.Commands; using Terminaux.Reader; diff --git a/public/Nitrocid/Shell/Shells/UESH/Commands/InputPass.cs b/public/Nitrocid/Shell/Shells/UESH/Commands/InputPass.cs index e5faed680d..51e7091047 100644 --- a/public/Nitrocid/Shell/Shells/UESH/Commands/InputPass.cs +++ b/public/Nitrocid/Shell/Shells/UESH/Commands/InputPass.cs @@ -17,7 +17,6 @@ // along with this program. If not, see . // -using Terminaux.Inputs.Styles; using Nitrocid.Shell.ShellBase.Commands; using Terminaux.Reader; diff --git a/public/Nitrocid/Shell/Shells/UESH/UESHShellInfo.cs b/public/Nitrocid/Shell/Shells/UESH/UESHShellInfo.cs index 79f37c3f40..25da95c0be 100644 --- a/public/Nitrocid/Shell/Shells/UESH/UESHShellInfo.cs +++ b/public/Nitrocid/Shell/Shells/UESH/UESHShellInfo.cs @@ -45,8 +45,8 @@ internal class UESHShellInfo : BaseShellInfo, IShellInfo /// /// List of commands /// - public override List Commands => new() - { + public override List Commands => + [ new CommandInfo("addgroup", /* Localizable */ "Adds groups", [ new CommandArgumentInfo(new[] @@ -1584,7 +1584,7 @@ internal class UESHShellInfo : BaseShellInfo, IShellInfo }) ]) ], new ZipCommand()), - }; + ]; public override Dictionary ShellPresets => new() {