mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 10:46:00 +08:00
Change "help" to display categories/module list then "help <category/module>" to display commands in a category.
This is to deal with the hundred lines of command splurge when one previously typed "help" Modelled somewhat on the mysql console One can still type help <command> to get per command help at any point. Categories capitalized to avoid conflict with the all-lowercase commands (except for commander system, as of yet). Does not affect command parsing or any other aspects of the console apart from the help system. Backwards compatible with existing modules.
This commit is contained in:
@@ -92,7 +92,7 @@ namespace OpenSim.Region.OptionalModules.Agent.TextureSender
|
||||
m_scene = scene;
|
||||
|
||||
MainConsole.Instance.Commands.AddCommand(
|
||||
"j2k",
|
||||
"Assets",
|
||||
false,
|
||||
"j2k decode",
|
||||
"j2k decode <ID>",
|
||||
|
||||
@@ -82,19 +82,19 @@ namespace OpenSim.Region.CoreModules.UDP.Linden
|
||||
m_scenes[scene.RegionInfo.RegionID] = scene;
|
||||
|
||||
scene.AddCommand(
|
||||
this, "image queues clear",
|
||||
"Comms", this, "image queues clear",
|
||||
"image queues clear <first-name> <last-name>",
|
||||
"Clear the image queues (textures downloaded via UDP) for a particular client.",
|
||||
(mod, cmd) => MainConsole.Instance.Output(HandleImageQueuesClear(cmd)));
|
||||
|
||||
scene.AddCommand(
|
||||
this, "image queues show",
|
||||
"Comms", this, "image queues show",
|
||||
"image queues show <first-name> <last-name>",
|
||||
"Show the image queues (textures downloaded via UDP) for a particular client.",
|
||||
(mod, cmd) => MainConsole.Instance.Output(GetImageQueuesReport(cmd)));
|
||||
|
||||
scene.AddCommand(
|
||||
this, "show pqueues",
|
||||
"Comms", this, "show pqueues",
|
||||
"show pqueues [full]",
|
||||
"Show priority queue data for each client",
|
||||
"Without the 'full' option, only root agents are shown."
|
||||
@@ -102,7 +102,7 @@ namespace OpenSim.Region.CoreModules.UDP.Linden
|
||||
(mod, cmd) => MainConsole.Instance.Output(GetPQueuesReport(cmd)));
|
||||
|
||||
scene.AddCommand(
|
||||
this, "show queues",
|
||||
"Comms", this, "show queues",
|
||||
"show queues [full]",
|
||||
"Show queue data for each client",
|
||||
"Without the 'full' option, only root agents are shown."
|
||||
@@ -110,13 +110,13 @@ namespace OpenSim.Region.CoreModules.UDP.Linden
|
||||
(mod, cmd) => MainConsole.Instance.Output(GetQueuesReport(cmd)));
|
||||
|
||||
scene.AddCommand(
|
||||
this, "show image queues",
|
||||
"Comms", this, "show image queues",
|
||||
"show image queues <first-name> <last-name>",
|
||||
"Show the image queues (textures downloaded via UDP) for a particular client.",
|
||||
(mod, cmd) => MainConsole.Instance.Output(GetImageQueuesReport(cmd)));
|
||||
|
||||
scene.AddCommand(
|
||||
this, "show throttles",
|
||||
"Comms", this, "show throttles",
|
||||
"show throttles [full]",
|
||||
"Show throttle settings for each client and for the server overall",
|
||||
"Without the 'full' option, only root agents are shown."
|
||||
@@ -124,7 +124,7 @@ namespace OpenSim.Region.CoreModules.UDP.Linden
|
||||
(mod, cmd) => MainConsole.Instance.Output(GetThrottlesReport(cmd)));
|
||||
|
||||
scene.AddCommand(
|
||||
this, "emergency-monitoring",
|
||||
"Comms", this, "emergency-monitoring",
|
||||
"emergency-monitoring",
|
||||
"Go on/off emergency monitoring mode",
|
||||
"Go on/off emergency monitoring mode",
|
||||
|
||||
@@ -88,7 +88,7 @@ namespace OpenSim.Region.OptionalModules.Asset
|
||||
m_scene = scene;
|
||||
|
||||
MainConsole.Instance.Commands.AddCommand(
|
||||
"asset",
|
||||
"Assets",
|
||||
false,
|
||||
"show asset",
|
||||
"show asset <ID>",
|
||||
@@ -96,7 +96,7 @@ namespace OpenSim.Region.OptionalModules.Asset
|
||||
HandleShowAsset);
|
||||
|
||||
MainConsole.Instance.Commands.AddCommand(
|
||||
"asset", false, "dump asset",
|
||||
"Assets", false, "dump asset",
|
||||
"dump asset <id>",
|
||||
"Dump an asset",
|
||||
HandleDumpAsset);
|
||||
|
||||
@@ -94,13 +94,13 @@ namespace OpenSim.Region.OptionalModules.Avatar.Appearance
|
||||
m_scenes[scene.RegionInfo.RegionID] = scene;
|
||||
|
||||
scene.AddCommand(
|
||||
this, "show appearance",
|
||||
"Users", this, "show appearance",
|
||||
"show appearance [<first-name> <last-name>]",
|
||||
"Synonym for 'appearance show'",
|
||||
HandleShowAppearanceCommand);
|
||||
|
||||
scene.AddCommand(
|
||||
this, "appearance show",
|
||||
"Users", this, "appearance show",
|
||||
"appearance show [<first-name> <last-name>]",
|
||||
"Show appearance information for each avatar in the simulator.",
|
||||
"This command checks whether the simulator has all the baked textures required to display an avatar to other viewers. "
|
||||
@@ -110,14 +110,14 @@ namespace OpenSim.Region.OptionalModules.Avatar.Appearance
|
||||
HandleShowAppearanceCommand);
|
||||
|
||||
scene.AddCommand(
|
||||
this, "appearance send",
|
||||
"Users", this, "appearance send",
|
||||
"appearance send [<first-name> <last-name>]",
|
||||
"Send appearance data for each avatar in the simulator to other viewers.",
|
||||
"Optionally, you can specify that only a particular avatar's appearance data is sent.",
|
||||
HandleSendAppearanceCommand);
|
||||
|
||||
scene.AddCommand(
|
||||
this, "appearance rebake",
|
||||
"Users", this, "appearance rebake",
|
||||
"appearance rebake <first-name> <last-name>",
|
||||
"Send a request to the user's viewer for it to rebake and reupload its appearance textures.",
|
||||
"This is currently done for all baked texture references previously received, whether the simulator can find the asset or not."
|
||||
@@ -127,7 +127,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Appearance
|
||||
HandleRebakeAppearanceCommand);
|
||||
|
||||
scene.AddCommand(
|
||||
this, "appearance find",
|
||||
"Users", this, "appearance find",
|
||||
"appearance find <uuid-or-start-of-uuid>",
|
||||
"Find out which avatar uses the given asset as a baked texture, if any.",
|
||||
"You can specify just the beginning of the uuid, e.g. 2008a8d. A longer UUID must be in dashed format.",
|
||||
|
||||
@@ -100,22 +100,22 @@ namespace OpenSim.Region.OptionalModules.PhysicsParameters
|
||||
{
|
||||
if (!m_commandsLoaded)
|
||||
{
|
||||
MainConsole.Instance.Commands.AddCommand("Physics", false, "physics set",
|
||||
"physics set",
|
||||
"Set physics parameter from currently selected region" + Environment.NewLine
|
||||
+ "Invocation: " + setInvocation,
|
||||
MainConsole.Instance.Commands.AddCommand(
|
||||
"Regions", false, "physics set",
|
||||
setInvocation,
|
||||
"Set physics parameter from currently selected region",
|
||||
ProcessPhysicsSet);
|
||||
|
||||
MainConsole.Instance.Commands.AddCommand("Physics", false, "physics get",
|
||||
"physics get",
|
||||
"Get physics parameter from currently selected region" + Environment.NewLine
|
||||
+ "Invocation: " + getInvocation,
|
||||
MainConsole.Instance.Commands.AddCommand(
|
||||
"Regions", false, "physics get",
|
||||
getInvocation,
|
||||
"Get physics parameter from currently selected region",
|
||||
ProcessPhysicsGet);
|
||||
|
||||
MainConsole.Instance.Commands.AddCommand("Physics", false, "physics list",
|
||||
"physics list",
|
||||
"List settable physics parameters" + Environment.NewLine
|
||||
+ "Invocation: " + listInvocation,
|
||||
MainConsole.Instance.Commands.AddCommand(
|
||||
"Regions", false, "physics list",
|
||||
listInvocation,
|
||||
"List settable physics parameters",
|
||||
ProcessPhysicsList);
|
||||
|
||||
m_commandsLoaded = true;
|
||||
|
||||
Reference in New Issue
Block a user