mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-26 22:48:20 +01:00
Remove TG specific config shims
This commit is contained in:
@@ -73,7 +73,7 @@ namespace TGCommandLine
|
||||
|
||||
protected override ExitCode Run(IList<string> parameters)
|
||||
{
|
||||
var bytes = Server.GetComponent<ITGConfig>().ReadRaw(parameters[0], parameters.Count > 2 && parameters[2].ToLower() == "--repo", out string error);
|
||||
var bytes = Server.GetComponent<ITGConfig>().ReadText(parameters[0], parameters.Count > 2 && parameters[2].ToLower() == "--repo", out string error);
|
||||
if(bytes == null)
|
||||
{
|
||||
OutputProc("Error: " + error);
|
||||
@@ -93,11 +93,11 @@ namespace TGCommandLine
|
||||
}
|
||||
public override string GetArgumentString()
|
||||
{
|
||||
return "<source config file> <out file> [--repo]";
|
||||
return "<source static file> <out file> [--repo]";
|
||||
}
|
||||
public override string GetHelpText()
|
||||
{
|
||||
return "Downloads the specified file from the config tree and writes it to out file. --repo will fetch it from the repository instead of the game config";
|
||||
return "Downloads the specified file from the static tree and writes it to out file. --repo will fetch it from the repository instead of the Static directory";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -113,7 +113,7 @@ namespace TGCommandLine
|
||||
{
|
||||
try
|
||||
{
|
||||
var res = Server.GetComponent<ITGConfig>().WriteRaw(parameters[0], File.ReadAllText(parameters[1]));
|
||||
var res = Server.GetComponent<ITGConfig>().WriteText(parameters[0], File.ReadAllText(parameters[1]));
|
||||
if (res != null)
|
||||
{
|
||||
OutputProc("Error: " + res);
|
||||
@@ -129,12 +129,12 @@ namespace TGCommandLine
|
||||
|
||||
public override string GetArgumentString()
|
||||
{
|
||||
return "<destination config file> <source file> [--repo]";
|
||||
return "<destination statoc file> <source file> [--repo]";
|
||||
}
|
||||
|
||||
public override string GetHelpText()
|
||||
{
|
||||
return "Uploads the specified file to the config tree from source file";
|
||||
return "Uploads the specified file to the static tree from source file";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user