Remove TG specific config shims

This commit is contained in:
Cyberboss
2017-09-20 14:27:52 -04:00
parent 517e86febc
commit 15fe20f1f6
8 changed files with 1701 additions and 4031 deletions
+6 -6
View File
@@ -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";
}
}
}