diff options
author | Justin Clark-Casey (justincc) | 2012-03-08 01:51:37 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-03-08 01:51:37 +0000 |
commit | 749c3fef8ad2d3af97fcd9ab9c72740675e46715 (patch) | |
tree | 068e6adc89dc50386413d85064e80e3114e3fd49 /OpenSim/Services | |
parent | minor: make NPC tests run in a given order, comment out log lines in mock reg... (diff) | |
download | opensim-SC-749c3fef8ad2d3af97fcd9ab9c72740675e46715.zip opensim-SC-749c3fef8ad2d3af97fcd9ab9c72740675e46715.tar.gz opensim-SC-749c3fef8ad2d3af97fcd9ab9c72740675e46715.tar.bz2 opensim-SC-749c3fef8ad2d3af97fcd9ab9c72740675e46715.tar.xz |
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.
Diffstat (limited to 'OpenSim/Services')
-rw-r--r-- | OpenSim/Services/GridService/GridService.cs | 4 | ||||
-rw-r--r-- | OpenSim/Services/LLLoginService/LLLoginService.cs | 6 | ||||
-rw-r--r-- | OpenSim/Services/UserAccountService/UserAccountService.cs | 8 |
3 files changed, 9 insertions, 9 deletions
diff --git a/OpenSim/Services/GridService/GridService.cs b/OpenSim/Services/GridService/GridService.cs index 89f0716..3dc87bc 100644 --- a/OpenSim/Services/GridService/GridService.cs +++ b/OpenSim/Services/GridService/GridService.cs | |||
@@ -84,14 +84,14 @@ namespace OpenSim.Services.GridService | |||
84 | 84 | ||
85 | if (MainConsole.Instance != null) | 85 | if (MainConsole.Instance != null) |
86 | { | 86 | { |
87 | MainConsole.Instance.Commands.AddCommand("grid", true, | 87 | MainConsole.Instance.Commands.AddCommand("Regions", true, |
88 | "show region", | 88 | "show region", |
89 | "show region <Region name>", | 89 | "show region <Region name>", |
90 | "Show details on a region", | 90 | "Show details on a region", |
91 | String.Empty, | 91 | String.Empty, |
92 | HandleShowRegion); | 92 | HandleShowRegion); |
93 | 93 | ||
94 | MainConsole.Instance.Commands.AddCommand("grid", true, | 94 | MainConsole.Instance.Commands.AddCommand("Regions", true, |
95 | "set region flags", | 95 | "set region flags", |
96 | "set region flags <Region name> <flags>", | 96 | "set region flags <Region name> <flags>", |
97 | "Set database flags for region", | 97 | "Set database flags for region", |
diff --git a/OpenSim/Services/LLLoginService/LLLoginService.cs b/OpenSim/Services/LLLoginService/LLLoginService.cs index f7b38d4..db8a9cb 100644 --- a/OpenSim/Services/LLLoginService/LLLoginService.cs +++ b/OpenSim/Services/LLLoginService/LLLoginService.cs | |||
@@ -893,16 +893,16 @@ namespace OpenSim.Services.LLLoginService | |||
893 | private void RegisterCommands() | 893 | private void RegisterCommands() |
894 | { | 894 | { |
895 | //MainConsole.Instance.Commands.AddCommand | 895 | //MainConsole.Instance.Commands.AddCommand |
896 | MainConsole.Instance.Commands.AddCommand("loginservice", false, "login level", | 896 | MainConsole.Instance.Commands.AddCommand("Users", false, "login level", |
897 | "login level <level>", | 897 | "login level <level>", |
898 | "Set the minimum user level to log in", HandleLoginCommand); | 898 | "Set the minimum user level to log in", HandleLoginCommand); |
899 | 899 | ||
900 | MainConsole.Instance.Commands.AddCommand("loginservice", false, "login reset", | 900 | MainConsole.Instance.Commands.AddCommand("Users", false, "login reset", |
901 | "login reset", | 901 | "login reset", |
902 | "Reset the login level to allow all users", | 902 | "Reset the login level to allow all users", |
903 | HandleLoginCommand); | 903 | HandleLoginCommand); |
904 | 904 | ||
905 | MainConsole.Instance.Commands.AddCommand("loginservice", false, "login text", | 905 | MainConsole.Instance.Commands.AddCommand("Users", false, "login text", |
906 | "login text <text>", | 906 | "login text <text>", |
907 | "Set the text users will see on login", HandleLoginCommand); | 907 | "Set the text users will see on login", HandleLoginCommand); |
908 | 908 | ||
diff --git a/OpenSim/Services/UserAccountService/UserAccountService.cs b/OpenSim/Services/UserAccountService/UserAccountService.cs index 4a29690..6f1d745 100644 --- a/OpenSim/Services/UserAccountService/UserAccountService.cs +++ b/OpenSim/Services/UserAccountService/UserAccountService.cs | |||
@@ -89,17 +89,17 @@ namespace OpenSim.Services.UserAccountService | |||
89 | if (m_RootInstance == null && MainConsole.Instance != null) | 89 | if (m_RootInstance == null && MainConsole.Instance != null) |
90 | { | 90 | { |
91 | m_RootInstance = this; | 91 | m_RootInstance = this; |
92 | MainConsole.Instance.Commands.AddCommand("UserService", false, | 92 | MainConsole.Instance.Commands.AddCommand("Users", false, |
93 | "create user", | 93 | "create user", |
94 | "create user [<first> [<last> [<pass> [<email> [<user id>]]]]]", | 94 | "create user [<first> [<last> [<pass> [<email> [<user id>]]]]]", |
95 | "Create a new user", HandleCreateUser); | 95 | "Create a new user", HandleCreateUser); |
96 | 96 | ||
97 | MainConsole.Instance.Commands.AddCommand("UserService", false, | 97 | MainConsole.Instance.Commands.AddCommand("Users", false, |
98 | "reset user password", | 98 | "reset user password", |
99 | "reset user password [<first> [<last> [<password>]]]", | 99 | "reset user password [<first> [<last> [<password>]]]", |
100 | "Reset a user password", HandleResetUserPassword); | 100 | "Reset a user password", HandleResetUserPassword); |
101 | 101 | ||
102 | MainConsole.Instance.Commands.AddCommand("UserService", false, | 102 | MainConsole.Instance.Commands.AddCommand("Users", false, |
103 | "set user level", | 103 | "set user level", |
104 | "set user level [<first> [<last> [<level>]]]", | 104 | "set user level [<first> [<last> [<level>]]]", |
105 | "Set user level. If >= 200 and 'allow_grid_gods = true' in OpenSim.ini, " | 105 | "Set user level. If >= 200 and 'allow_grid_gods = true' in OpenSim.ini, " |
@@ -107,7 +107,7 @@ namespace OpenSim.Services.UserAccountService | |||
107 | + "It will also affect the 'login level' command. ", | 107 | + "It will also affect the 'login level' command. ", |
108 | HandleSetUserLevel); | 108 | HandleSetUserLevel); |
109 | 109 | ||
110 | MainConsole.Instance.Commands.AddCommand("UserService", false, | 110 | MainConsole.Instance.Commands.AddCommand("Users", false, |
111 | "show account", | 111 | "show account", |
112 | "show account <first> <last>", | 112 | "show account <first> <last>", |
113 | "Show account details for the given user", HandleShowAccount); | 113 | "Show account details for the given user", HandleShowAccount); |