diff options
author | Melanie Thielker | 2017-01-05 19:07:37 +0000 |
---|---|---|
committer | Melanie Thielker | 2017-01-05 19:07:37 +0000 |
commit | b16abc8166c29585cb76cc55c3bdd76e5833cb4f (patch) | |
tree | 6a34f465a74b7a3a6dc00a3d7aa8dcc25ac3e3a5 /OpenSim/Server/Base/CommandManager.cs | |
parent | Make it possible to disable the bakes module in the way it is described in co... (diff) | |
download | opensim-SC-b16abc8166c29585cb76cc55c3bdd76e5833cb4f.zip opensim-SC-b16abc8166c29585cb76cc55c3bdd76e5833cb4f.tar.gz opensim-SC-b16abc8166c29585cb76cc55c3bdd76e5833cb4f.tar.bz2 opensim-SC-b16abc8166c29585cb76cc55c3bdd76e5833cb4f.tar.xz |
Massive tab and trailing space cleanup
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Server/Base/CommandManager.cs | 90 |
1 files changed, 45 insertions, 45 deletions
diff --git a/OpenSim/Server/Base/CommandManager.cs b/OpenSim/Server/Base/CommandManager.cs index bd18485..b6e2903 100644 --- a/OpenSim/Server/Base/CommandManager.cs +++ b/OpenSim/Server/Base/CommandManager.cs | |||
@@ -41,117 +41,117 @@ namespace OpenSim.Server.Base | |||
41 | { | 41 | { |
42 | /// <summary> | 42 | /// <summary> |
43 | /// Command manager - | 43 | /// Command manager - |
44 | /// Wrapper for OpenSim.Framework.PluginManager to allow | 44 | /// Wrapper for OpenSim.Framework.PluginManager to allow |
45 | /// us to add commands to the console to perform operations | 45 | /// us to add commands to the console to perform operations |
46 | /// on our repos and plugins | 46 | /// on our repos and plugins |
47 | /// </summary> | 47 | /// </summary> |
48 | public class CommandManager | 48 | public class CommandManager |
49 | { | 49 | { |
50 | public AddinRegistry PluginRegistry; | 50 | public AddinRegistry PluginRegistry; |
51 | protected PluginManager PluginManager; | 51 | protected PluginManager PluginManager; |
52 | 52 | ||
53 | public CommandManager(AddinRegistry registry) | 53 | public CommandManager(AddinRegistry registry) |
54 | { | 54 | { |
55 | PluginRegistry = registry; | 55 | PluginRegistry = registry; |
56 | PluginManager = new PluginManager(PluginRegistry); | 56 | PluginManager = new PluginManager(PluginRegistry); |
57 | AddManagementCommands(); | 57 | AddManagementCommands(); |
58 | } | 58 | } |
59 | 59 | ||
60 | private void AddManagementCommands() | 60 | private void AddManagementCommands() |
61 | { | 61 | { |
62 | // add plugin | 62 | // add plugin |
63 | MainConsole.Instance.Commands.AddCommand("Plugin", true, | 63 | MainConsole.Instance.Commands.AddCommand("Plugin", true, |
64 | "plugin add", "plugin add \"plugin index\"", | 64 | "plugin add", "plugin add \"plugin index\"", |
65 | "Install plugin from repository.", | 65 | "Install plugin from repository.", |
66 | HandleConsoleInstallPlugin); | 66 | HandleConsoleInstallPlugin); |
67 | 67 | ||
68 | // remove plugin | 68 | // remove plugin |
69 | MainConsole.Instance.Commands.AddCommand("Plugin", true, | 69 | MainConsole.Instance.Commands.AddCommand("Plugin", true, |
70 | "plugin remove", "plugin remove \"plugin index\"", | 70 | "plugin remove", "plugin remove \"plugin index\"", |
71 | "Remove plugin from repository", | 71 | "Remove plugin from repository", |
72 | HandleConsoleUnInstallPlugin); | 72 | HandleConsoleUnInstallPlugin); |
73 | 73 | ||
74 | // list installed plugins | 74 | // list installed plugins |
75 | MainConsole.Instance.Commands.AddCommand("Plugin", true, | 75 | MainConsole.Instance.Commands.AddCommand("Plugin", true, |
76 | "plugin list installed", | 76 | "plugin list installed", |
77 | "plugin list installed","List install plugins", | 77 | "plugin list installed","List install plugins", |
78 | HandleConsoleListInstalledPlugin); | 78 | HandleConsoleListInstalledPlugin); |
79 | 79 | ||
80 | // list plugins available from registered repositories | 80 | // list plugins available from registered repositories |
81 | MainConsole.Instance.Commands.AddCommand("Plugin", true, | 81 | MainConsole.Instance.Commands.AddCommand("Plugin", true, |
82 | "plugin list available", | 82 | "plugin list available", |
83 | "plugin list available","List available plugins", | 83 | "plugin list available","List available plugins", |
84 | HandleConsoleListAvailablePlugin); | 84 | HandleConsoleListAvailablePlugin); |
85 | // List available updates | 85 | // List available updates |
86 | MainConsole.Instance.Commands.AddCommand("Plugin", true, | 86 | MainConsole.Instance.Commands.AddCommand("Plugin", true, |
87 | "plugin updates", "plugin updates","List availble updates", | 87 | "plugin updates", "plugin updates","List availble updates", |
88 | HandleConsoleListUpdates); | 88 | HandleConsoleListUpdates); |
89 | 89 | ||
90 | // Update plugin | 90 | // Update plugin |
91 | MainConsole.Instance.Commands.AddCommand("Plugin", true, | 91 | MainConsole.Instance.Commands.AddCommand("Plugin", true, |
92 | "plugin update", "plugin update \"plugin index\"","Update the plugin", | 92 | "plugin update", "plugin update \"plugin index\"","Update the plugin", |
93 | HandleConsoleUpdatePlugin); | 93 | HandleConsoleUpdatePlugin); |
94 | 94 | ||
95 | // Add repository | 95 | // Add repository |
96 | MainConsole.Instance.Commands.AddCommand("Repository", true, | 96 | MainConsole.Instance.Commands.AddCommand("Repository", true, |
97 | "repo add", "repo add \"url\"","Add repository", | 97 | "repo add", "repo add \"url\"","Add repository", |
98 | HandleConsoleAddRepo); | 98 | HandleConsoleAddRepo); |
99 | 99 | ||
100 | // Refresh repo | 100 | // Refresh repo |
101 | MainConsole.Instance.Commands.AddCommand("Repository", true, | 101 | MainConsole.Instance.Commands.AddCommand("Repository", true, |
102 | "repo refresh", "repo refresh \"url\"", "Sync with a registered repository", | 102 | "repo refresh", "repo refresh \"url\"", "Sync with a registered repository", |
103 | HandleConsoleGetRepo); | 103 | HandleConsoleGetRepo); |
104 | 104 | ||
105 | // Remove repository from registry | 105 | // Remove repository from registry |
106 | MainConsole.Instance.Commands.AddCommand("Repository", true, | 106 | MainConsole.Instance.Commands.AddCommand("Repository", true, |
107 | "repo remove", | 107 | "repo remove", |
108 | "repo remove \"[url | index]\"", | 108 | "repo remove \"[url | index]\"", |
109 | "Remove repository from registry", | 109 | "Remove repository from registry", |
110 | HandleConsoleRemoveRepo); | 110 | HandleConsoleRemoveRepo); |
111 | 111 | ||
112 | // Enable repo | 112 | // Enable repo |
113 | MainConsole.Instance.Commands.AddCommand("Repository", true, | 113 | MainConsole.Instance.Commands.AddCommand("Repository", true, |
114 | "repo enable", "repo enable \"[url | index]\"", | 114 | "repo enable", "repo enable \"[url | index]\"", |
115 | "Enable registered repository", | 115 | "Enable registered repository", |
116 | HandleConsoleEnableRepo); | 116 | HandleConsoleEnableRepo); |
117 | 117 | ||
118 | // Disable repo | 118 | // Disable repo |
119 | MainConsole.Instance.Commands.AddCommand("Repository", true, | 119 | MainConsole.Instance.Commands.AddCommand("Repository", true, |
120 | "repo disable", "repo disable\"[url | index]\"", | 120 | "repo disable", "repo disable\"[url | index]\"", |
121 | "Disable registered repository", | 121 | "Disable registered repository", |
122 | HandleConsoleDisableRepo); | 122 | HandleConsoleDisableRepo); |
123 | 123 | ||
124 | // List registered repositories | 124 | // List registered repositories |
125 | MainConsole.Instance.Commands.AddCommand("Repository", true, | 125 | MainConsole.Instance.Commands.AddCommand("Repository", true, |
126 | "repo list", "repo list", | 126 | "repo list", "repo list", |
127 | "List registered repositories", | 127 | "List registered repositories", |
128 | HandleConsoleListRepos); | 128 | HandleConsoleListRepos); |
129 | 129 | ||
130 | // * | 130 | // * |
131 | MainConsole.Instance.Commands.AddCommand("Plugin", true, | 131 | MainConsole.Instance.Commands.AddCommand("Plugin", true, |
132 | "plugin info", "plugin info \"plugin index\"","Show detailed information for plugin", | 132 | "plugin info", "plugin info \"plugin index\"","Show detailed information for plugin", |
133 | HandleConsoleShowAddinInfo); | 133 | HandleConsoleShowAddinInfo); |
134 | 134 | ||
135 | // Plugin disable | 135 | // Plugin disable |
136 | MainConsole.Instance.Commands.AddCommand("Plugin", true, | 136 | MainConsole.Instance.Commands.AddCommand("Plugin", true, |
137 | "plugin disable", "plugin disable \"plugin index\"", | 137 | "plugin disable", "plugin disable \"plugin index\"", |
138 | "Disable a plugin", | 138 | "Disable a plugin", |
139 | HandleConsoleDisablePlugin); | 139 | HandleConsoleDisablePlugin); |
140 | 140 | ||
141 | // Enable plugin | 141 | // Enable plugin |
142 | MainConsole.Instance.Commands.AddCommand("Plugin", true, | 142 | MainConsole.Instance.Commands.AddCommand("Plugin", true, |
143 | "plugin enable", "plugin enable \"plugin index\"", | 143 | "plugin enable", "plugin enable \"plugin index\"", |
144 | "Enable the selected plugin plugin", | 144 | "Enable the selected plugin plugin", |
145 | HandleConsoleEnablePlugin); | 145 | HandleConsoleEnablePlugin); |
146 | } | 146 | } |
147 | 147 | ||
148 | #region console handlers | 148 | #region console handlers |
149 | // Handle our console commands | 149 | // Handle our console commands |
150 | // | 150 | // |
151 | // Install plugin from registered repository | 151 | // Install plugin from registered repository |
152 | /// <summary> | 152 | /// <summary> |
153 | /// Handles the console install plugin command. Attempts to install the selected plugin | 153 | /// Handles the console install plugin command. Attempts to install the selected plugin |
154 | /// and | 154 | /// and |
155 | /// </summary> | 155 | /// </summary> |
156 | /// <param name='module'> | 156 | /// <param name='module'> |
157 | /// Module. | 157 | /// Module. |
@@ -323,7 +323,7 @@ namespace OpenSim.Server.Base | |||
323 | { | 323 | { |
324 | if (cmd.Length >= 3) | 324 | if (cmd.Length >= 3) |
325 | { | 325 | { |
326 | 326 | ||
327 | Dictionary<string, object> result = new Dictionary<string, object>(); | 327 | Dictionary<string, object> result = new Dictionary<string, object>(); |
328 | 328 | ||
329 | int ndx = Convert.ToInt16(cmd[2]); | 329 | int ndx = Convert.ToInt16(cmd[2]); |
@@ -355,5 +355,5 @@ namespace OpenSim.Server.Base | |||
355 | return; | 355 | return; |
356 | } | 356 | } |
357 | #endregion | 357 | #endregion |
358 | } | 358 | } |
359 | } \ No newline at end of file | 359 | } \ No newline at end of file |