mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 11:33:28 +08:00
Massive console refactor. Greatly simplify interface.
This commit is contained in:
15
OpenSim/Server/Base/CommandManager.cs
Normal file → Executable file
15
OpenSim/Server/Base/CommandManager.cs
Normal file → Executable file
@@ -178,7 +178,8 @@ namespace OpenSim.Server.Base
|
||||
{
|
||||
Dictionary<string, object> plugin = (Dictionary<string, object>)result[k];
|
||||
bool enabled = (bool)plugin["enabled"];
|
||||
MainConsole.Instance.OutputFormat("{0}) {1} {2} rev. {3}",
|
||||
MainConsole.Instance.Output("{0}) {1} {2} rev. {3}",
|
||||
null,
|
||||
k,
|
||||
enabled == true ? "[ ]" : "[X]",
|
||||
plugin["name"], plugin["version"]);
|
||||
@@ -215,7 +216,8 @@ namespace OpenSim.Server.Base
|
||||
{
|
||||
Dictionary<string, object> plugin = (Dictionary<string, object>)result[k];
|
||||
bool enabled = (bool)plugin["enabled"];
|
||||
MainConsole.Instance.OutputFormat("{0}) {1} {2} rev. {3}",
|
||||
MainConsole.Instance.Output("{0}) {1} {2} rev. {3}",
|
||||
null,
|
||||
k,
|
||||
enabled == true ? "[ ]" : "[X]",
|
||||
plugin["name"], plugin["version"]);
|
||||
@@ -235,7 +237,8 @@ namespace OpenSim.Server.Base
|
||||
{
|
||||
// name, version, repository
|
||||
Dictionary<string, object> plugin = (Dictionary<string, object>)result[k];
|
||||
MainConsole.Instance.OutputFormat("{0}) {1} rev. {2} {3}",
|
||||
MainConsole.Instance.Output("{0}) {1} rev. {2} {3}",
|
||||
null,
|
||||
k,
|
||||
plugin["name"],
|
||||
plugin["version"],
|
||||
@@ -309,7 +312,8 @@ namespace OpenSim.Server.Base
|
||||
{
|
||||
Dictionary<string, object> repo = (Dictionary<string, object>)result[k];
|
||||
bool enabled = (bool)repo["enabled"];
|
||||
MainConsole.Instance.OutputFormat("{0}) {1} {2}",
|
||||
MainConsole.Instance.Output("{0}) {1} {2}",
|
||||
null,
|
||||
k,
|
||||
enabled == true ? "[ ]" : "[X]",
|
||||
repo["name"], repo["url"]);
|
||||
@@ -329,7 +333,8 @@ namespace OpenSim.Server.Base
|
||||
int ndx = Convert.ToInt16(cmd[2]);
|
||||
PluginManager.AddinInfo(ndx, out result);
|
||||
|
||||
MainConsole.Instance.OutputFormat("Name: {0}\nURL: {1}\nFile: {2}\nAuthor: {3}\nCategory: {4}\nDesc: {5}",
|
||||
MainConsole.Instance.Output("Name: {0}\nURL: {1}\nFile: {2}\nAuthor: {3}\nCategory: {4}\nDesc: {5}",
|
||||
null,
|
||||
result["name"],
|
||||
result["url"],
|
||||
result["file_name"],
|
||||
|
||||
Reference in New Issue
Block a user