Remove duplicate echo command (#15863)
This commit is contained in:
@@ -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));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
echo-command-description = Prints parameter into console
|
|
||||||
echo-command-help-text = Usage: {$command} <text>
|
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
# Available to everybody
|
# Available to everybody
|
||||||
- Commands:
|
- Commands:
|
||||||
|
- echo
|
||||||
- disconnect
|
- disconnect
|
||||||
- help
|
- help
|
||||||
- list
|
- list
|
||||||
|
|||||||
Reference in New Issue
Block a user