Remove duplicate echo command (#15863)

This commit is contained in:
Leon Friedrich
2023-04-28 19:09:25 +12:00
committed by GitHub
parent 5eba1d230a
commit 3fc699dc56
3 changed files with 1 additions and 23 deletions

View File

@@ -1,21 +0,0 @@
using Content.Shared.Administration;
using Robust.Shared.Console;
namespace Content.Server.Utility.Commands
{
[AnyCommand]
sealed class EchoCommand : IConsoleCommand
{
public string Command => "echo";
public string Description => Loc.GetString("echo-command-description");
public string Help => Loc.GetString("echo-command-help-text", ("command", Command));
public void Execute(IConsoleShell shell, string argStr, string[] args)
{
if (argStr.Length > Command.Length)
shell.WriteLine(argStr.Substring(Command.Length + 1));
}
}
}

View File

@@ -1,2 +0,0 @@
echo-command-description = Prints parameter into console
echo-command-help-text = Usage: {$command} <text>

View File

@@ -1,5 +1,6 @@
# Available to everybody
- Commands:
- echo
- disconnect
- help
- list