mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-27 07:04:57 +01:00
Merge pull request #505 from Cyberboss/FixCLI
Fix the command line being dense af
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user