Merge pull request #505 from Cyberboss/FixCLI

Fix the command line being dense af
This commit is contained in:
Jordan Brown
2018-04-27 10:16:55 -04:00
committed by GitHub
2 changed files with 3 additions and 3 deletions
+1
View File
@@ -243,6 +243,7 @@ namespace TGS.CommandLine
else
{
Console.WriteLine("Connected remotely");
Console.WriteLine("Type 'instance' to connect to a server instance");
if (currentInterface.VersionMismatch(out error))
{
SentVMMWarning = true;
+2 -3
View File
@@ -8,14 +8,13 @@ namespace TGS.CommandLine
{
public CLICommand(IClient I)
{
var tmp = new List<Command> { new UpdateCommand(), new TestmergeCommand(), new RepoCommand(), new BYONDCommand(), new DMCommand(), new DDCommand(), new ConfigCommand(), new IRCCommand(), new DiscordCommand(), new AutoUpdateCommand(), new SetAutoUpdateCommand() };
if (ConsoleCommand.Instance.Administration != null)
var tmp = ConsoleCommand.Instance != null ? new List<Command> { new UpdateCommand(), new TestmergeCommand(), new RepoCommand(), new BYONDCommand(), new DMCommand(), new DDCommand(), new ConfigCommand(), new IRCCommand(), new DiscordCommand(), new AutoUpdateCommand(), new SetAutoUpdateCommand() } : new List<Command>();
if (ConsoleCommand.Instance?.Administration != null)
tmp.Add(new AdminCommand());
if (ConsoleCommand.Server.Management != null)
tmp.Add(new ServiceCommand());
Children = tmp.ToArray();
}
public override void PrintHelp()
{
OutputProc("/tg/station 13 Server Command Line");