diff options
author | Melanie | 2019-08-20 23:28:59 +0100 |
---|---|---|
committer | Melanie | 2019-08-20 23:28:59 +0100 |
commit | 0fd17c08ae642fac17b24dfad06c61cfe5739483 (patch) | |
tree | 4871c96eab2f5b118cb09d670a3a4ba024cf1210 /OpenSim/Server/Base/CommandManager.cs | |
parent | change PGSQL migration (diff) | |
download | opensim-SC-0fd17c08ae642fac17b24dfad06c61cfe5739483.zip opensim-SC-0fd17c08ae642fac17b24dfad06c61cfe5739483.tar.gz opensim-SC-0fd17c08ae642fac17b24dfad06c61cfe5739483.tar.bz2 opensim-SC-0fd17c08ae642fac17b24dfad06c61cfe5739483.tar.xz |
Massive console refactor. Greatly simplify interface.
Diffstat (limited to '')
-rwxr-xr-x[-rw-r--r--] | OpenSim/Server/Base/CommandManager.cs | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/OpenSim/Server/Base/CommandManager.cs b/OpenSim/Server/Base/CommandManager.cs index ffb20ce..9ada974 100644..100755 --- a/OpenSim/Server/Base/CommandManager.cs +++ b/OpenSim/Server/Base/CommandManager.cs | |||
@@ -178,7 +178,8 @@ namespace OpenSim.Server.Base | |||
178 | { | 178 | { |
179 | Dictionary<string, object> plugin = (Dictionary<string, object>)result[k]; | 179 | Dictionary<string, object> plugin = (Dictionary<string, object>)result[k]; |
180 | bool enabled = (bool)plugin["enabled"]; | 180 | bool enabled = (bool)plugin["enabled"]; |
181 | MainConsole.Instance.OutputFormat("{0}) {1} {2} rev. {3}", | 181 | MainConsole.Instance.Output("{0}) {1} {2} rev. {3}", |
182 | null, | ||
182 | k, | 183 | k, |
183 | enabled == true ? "[ ]" : "[X]", | 184 | enabled == true ? "[ ]" : "[X]", |
184 | plugin["name"], plugin["version"]); | 185 | plugin["name"], plugin["version"]); |
@@ -215,7 +216,8 @@ namespace OpenSim.Server.Base | |||
215 | { | 216 | { |
216 | Dictionary<string, object> plugin = (Dictionary<string, object>)result[k]; | 217 | Dictionary<string, object> plugin = (Dictionary<string, object>)result[k]; |
217 | bool enabled = (bool)plugin["enabled"]; | 218 | bool enabled = (bool)plugin["enabled"]; |
218 | MainConsole.Instance.OutputFormat("{0}) {1} {2} rev. {3}", | 219 | MainConsole.Instance.Output("{0}) {1} {2} rev. {3}", |
220 | null, | ||
219 | k, | 221 | k, |
220 | enabled == true ? "[ ]" : "[X]", | 222 | enabled == true ? "[ ]" : "[X]", |
221 | plugin["name"], plugin["version"]); | 223 | plugin["name"], plugin["version"]); |
@@ -235,7 +237,8 @@ namespace OpenSim.Server.Base | |||
235 | { | 237 | { |
236 | // name, version, repository | 238 | // name, version, repository |
237 | Dictionary<string, object> plugin = (Dictionary<string, object>)result[k]; | 239 | Dictionary<string, object> plugin = (Dictionary<string, object>)result[k]; |
238 | MainConsole.Instance.OutputFormat("{0}) {1} rev. {2} {3}", | 240 | MainConsole.Instance.Output("{0}) {1} rev. {2} {3}", |
241 | null, | ||
239 | k, | 242 | k, |
240 | plugin["name"], | 243 | plugin["name"], |
241 | plugin["version"], | 244 | plugin["version"], |
@@ -309,7 +312,8 @@ namespace OpenSim.Server.Base | |||
309 | { | 312 | { |
310 | Dictionary<string, object> repo = (Dictionary<string, object>)result[k]; | 313 | Dictionary<string, object> repo = (Dictionary<string, object>)result[k]; |
311 | bool enabled = (bool)repo["enabled"]; | 314 | bool enabled = (bool)repo["enabled"]; |
312 | MainConsole.Instance.OutputFormat("{0}) {1} {2}", | 315 | MainConsole.Instance.Output("{0}) {1} {2}", |
316 | null, | ||
313 | k, | 317 | k, |
314 | enabled == true ? "[ ]" : "[X]", | 318 | enabled == true ? "[ ]" : "[X]", |
315 | repo["name"], repo["url"]); | 319 | repo["name"], repo["url"]); |
@@ -329,7 +333,8 @@ namespace OpenSim.Server.Base | |||
329 | int ndx = Convert.ToInt16(cmd[2]); | 333 | int ndx = Convert.ToInt16(cmd[2]); |
330 | PluginManager.AddinInfo(ndx, out result); | 334 | PluginManager.AddinInfo(ndx, out result); |
331 | 335 | ||
332 | MainConsole.Instance.OutputFormat("Name: {0}\nURL: {1}\nFile: {2}\nAuthor: {3}\nCategory: {4}\nDesc: {5}", | 336 | MainConsole.Instance.Output("Name: {0}\nURL: {1}\nFile: {2}\nAuthor: {3}\nCategory: {4}\nDesc: {5}", |
337 | null, | ||
333 | result["name"], | 338 | result["name"], |
334 | result["url"], | 339 | result["url"], |
335 | result["file_name"], | 340 | result["file_name"], |