blob: dbcafd3deb702479c945fc45493c08eb733a6c89 [file] [log] [blame]
Guillaume Nodet05fac962009-04-27 10:01:58 +00001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3
4 Licensed to the Apache Software Foundation (ASF) under one or more
5 contributor license agreements. See the NOTICE file distributed with
6 this work for additional information regarding copyright ownership.
7 The ASF licenses this file to You under the Apache License, Version 2.0
8 (the "License"); you may not use this file except in compliance with
9 the License. You may obtain a copy of the License at
10
11 http://www.apache.org/licenses/LICENSE-2.0
12
13 Unless required by applicable law or agreed to in writing, software
14 distributed under the License is distributed on an "AS IS" BASIS,
15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 See the License for the specific language governing permissions and
17 limitations under the License.
18
19-->
20<beans xmlns="http://www.springframework.org/schema/beans"
21 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22 xmlns:util="http://www.springframework.org/schema/util"
23 xmlns:gshell="http://servicemix.apache.org/schema/servicemix-gshell"
24 xsi:schemaLocation="
25 http://www.springframework.org/schema/beans
26 http://www.springframework.org/schema/beans/spring-beans.xsd
27 http://www.springframework.org/schema/util
28 http://www.springframework.org/schema/util/spring-util.xsd
29 http://servicemix.apache.org/schema/servicemix-gshell
30 http://servicemix.apache.org/schema/servicemix-gshell/servicemix-gshell.xsd"
31 default-autowire="no"
32 default-dependency-check="none"
33 default-init-method="init"
34 default-destroy-method="destroy">
35
36 <import resource="classpath:org/apache/servicemix/kernel/gshell/core/commands.xml" />
37
38 <bean id="vfsCommandActionTemplate" abstract="true">
39 <property name="fileSystemAccess" ref="fileSystemAccess"/>
40 </bean>
41
42 <gshell:command-bundle>
43 <gshell:command name="about">
44 <gshell:action class="org.apache.geronimo.gshell.commands.builtin.AboutAction">
45 <constructor-arg ref="application"/>
46 </gshell:action>
47 </gshell:command>
48
49 <gshell:command name="help">
50 <gshell:action class="org.apache.geronimo.gshell.commands.builtin.HelpAction">
51 <constructor-arg ref="commandResolver"/>
52 </gshell:action>
53 <gshell:completers>
54 <bean class="org.apache.geronimo.gshell.console.completer.AggregateCompleter">
55 <constructor-arg>
56 <list>
57 <ref bean="aliasNameCompleter"/>
58 <ref bean="commandNameCompleter"/>
59 </list>
60 </constructor-arg>
61 </bean>
62 <null/>
63 </gshell:completers>
64 </gshell:command>
65
66 <gshell:command name="exit">
67 <gshell:action class="org.apache.geronimo.gshell.commands.builtin.ExitAction"/>
68 </gshell:command>
69
70 <gshell:link name="quit" target="exit"/>
71
72 <gshell:command name="echo">
73 <gshell:action class="org.apache.geronimo.gshell.commands.builtin.EchoAction"/>
74 </gshell:command>
75
76 <gshell:command name="clear" type="stateless">
77 <gshell:action class="org.apache.geronimo.gshell.commands.builtin.ClearAction"/>
78 </gshell:command>
79
80 <gshell:command name="source">
81 <gshell:action class="org.apache.geronimo.gshell.commands.builtin.SourceAction">
82 <constructor-arg ref="commandLineExecutor"/>
83 <constructor-arg ref="fileSystemAccess"/>
84 </gshell:action>
85 <gshell:completers>
86 <ref bean="fileObjectNameCompleter"/>
87 <null/>
88 </gshell:completers>
89 </gshell:command>
90
91 <gshell:command name="set">
92 <gshell:action class="org.apache.geronimo.gshell.commands.builtin.SetAction"/>
93 </gshell:command>
94
95 <gshell:command name="unset">
96 <gshell:action class="org.apache.geronimo.gshell.commands.builtin.UnsetAction"/>
97 <gshell:completers>
98 <ref bean="variableNameCompleter"/>
99 <null/>
100 </gshell:completers>
101 </gshell:command>
102
103 <gshell:command name="alias">
104 <gshell:action class="org.apache.geronimo.gshell.commands.builtin.AliasAction">
105 <constructor-arg ref="aliasRegistry"/>
106 </gshell:action>
107 </gshell:command>
108
109 <gshell:command name="unalias">
110 <gshell:action class="org.apache.geronimo.gshell.commands.builtin.UnaliasAction">
111 <constructor-arg ref="aliasRegistry"/>
112 </gshell:action>
113 <gshell:completers>
114 <ref bean="aliasNameCompleter"/>
115 <null/>
116 </gshell:completers>
117 </gshell:command>
118
119 <gshell:command name="history">
120 <gshell:action class="org.apache.geronimo.gshell.commands.builtin.HistoryAction"/>
121 </gshell:command>
122
123 <gshell:command name="info">
124 <gshell:action class="org.apache.servicemix.kernel.gshell.core.commands.InfoAction">
125 <constructor-arg ref="branding" />
126 </gshell:action>
127 </gshell:command>
128 </gshell:command-bundle>
129
130 <gshell:command-bundle>
131 <gshell:command name="ssh">
132 <gshell:action class="org.apache.geronimo.gshell.commands.ssh.SshAction"/>
133 </gshell:command>
134
135 <gshell:command name="sshd">
136 <gshell:action class="org.apache.geronimo.gshell.commands.ssh.SshServerAction"/>
137 </gshell:command>
138 </gshell:command-bundle>
139
140 <gshell:command-bundle>
141 <gshell:command name="exec">
142 <gshell:action class="org.apache.geronimo.gshell.commands.shell.ExecuteAction"/>
143 </gshell:command>
144
145 <gshell:command name="java">
146 <gshell:action class="org.apache.geronimo.gshell.commands.shell.JavaAction"/>
147 </gshell:command>
148
149 <gshell:command name="sleep">
150 <gshell:action class="org.apache.geronimo.gshell.commands.shell.SleepAction"/>
151 </gshell:command>
152
153 <gshell:command name="date">
154 <gshell:action class="org.apache.geronimo.gshell.commands.shell.DateAction"/>
155 </gshell:command>
156
157 <gshell:command name="edit">
158 <gshell:action class="org.apache.geronimo.gshell.commands.shell.EditAction">
159 <property name="fileSystemAccess" ref="fileSystemAccess"/>
160 </gshell:action>
161 <gshell:completers>
162 <ref bean="fileObjectNameCompleter"/>
163 <null/>
164 </gshell:completers>
165 </gshell:command>
166
167 <gshell:command name="find">
168 <gshell:action class="org.apache.geronimo.gshell.commands.shell.FindAction">
169 <property name="fileSystemAccess" ref="fileSystemAccess"/>
170 </gshell:action>
171 <gshell:completers>
172 <ref bean="fileObjectNameCompleter"/>
173 <null/>
174 </gshell:completers>
175 </gshell:command>
176
177 <gshell:command name="sort">
178 <gshell:action class="org.apache.geronimo.gshell.commands.text.SortAction">
179 <property name="fileSystemAccess" ref="fileSystemAccess"/>
180 </gshell:action>
181 <gshell:completers>
182 <ref bean="fileObjectNameCompleter"/>
183 <null/>
184 </gshell:completers>
185 </gshell:command>
186 </gshell:command-bundle>
187
188 <gshell:command-bundle>
189 <gshell:command name="hostname">
190 <gshell:action class="org.apache.geronimo.gshell.commands.network.HostnameAction"/>
191 </gshell:command>
192 </gshell:command-bundle>
193
194 <gshell:command-bundle>
195 <gshell:link name="print" target="echo"/>
196
197 <gshell:command name="printf">
198 <gshell:action class="org.apache.geronimo.gshell.commands.text.PrintfAction"/>
199 </gshell:command>
200
201 <gshell:command name="cat">
202 <gshell:action class="org.apache.geronimo.gshell.commands.text.CatAction">
203 <property name="fileSystemAccess" ref="fileSystemAccess"/>
204 </gshell:action>
205 <gshell:completers>
206 <ref bean="fileObjectNameCompleter"/>
207 <null/>
208 </gshell:completers>
209 </gshell:command>
210
211 <gshell:command name="grep">
212 <gshell:action class="org.apache.geronimo.gshell.commands.text.GrepAction"/>
213 </gshell:command>
214 </gshell:command-bundle>
215
216 <gshell:command-bundle>
217 <gshell:command name="cd">
218 <gshell:action class="org.apache.geronimo.gshell.commands.file.ChangeDirectoryAction" parent="vfsCommandActionTemplate"/>
219 <gshell:completers>
220 <ref bean="fileObjectNameCompleter"/>
221 <null/>
222 </gshell:completers>
223 </gshell:command>
224
225 <gshell:command name="pwd" type="stateless">
226 <gshell:action class="org.apache.geronimo.gshell.commands.file.CurrentDirectoryAction" parent="vfsCommandActionTemplate"/>
227 </gshell:command>
228
229 <gshell:command name="ls">
230 <gshell:action class="org.apache.geronimo.gshell.commands.file.ListDirectoryAction" parent="vfsCommandActionTemplate"/>
231 <gshell:completers>
232 <ref bean="fileObjectNameCompleter"/>
233 <null/>
234 </gshell:completers>
235 </gshell:command>
236
237 <gshell:link name="dir" target="ls"/>
238
239 <gshell:command name="cp">
240 <gshell:action class="org.apache.geronimo.gshell.commands.file.CopyAction" parent="vfsCommandActionTemplate"/>
241 <gshell:completers>
242 <ref bean="fileObjectNameCompleter"/>
243 <ref bean="fileObjectNameCompleter"/>
244 <null/>
245 </gshell:completers>
246 </gshell:command>
247
248 <gshell:link name="copy" target="cp"/>
249
250 <gshell:command name="rm">
251 <gshell:action class="org.apache.geronimo.gshell.commands.file.RemoveAction" parent="vfsCommandActionTemplate"/>
252 <gshell:completers>
253 <ref bean="fileObjectNameCompleter"/>
254 <null/>
255 </gshell:completers>
256 </gshell:command>
257
258 <gshell:link name="del" target="rm"/>
259
260 <gshell:command name="fileinfo">
261 <gshell:action class="org.apache.geronimo.gshell.commands.file.FileInfoAction" parent="vfsCommandActionTemplate"/>
262 <gshell:completers>
263 <ref bean="fileObjectNameCompleter"/>
264 <null/>
265 </gshell:completers>
266 </gshell:command>
267
268 <gshell:command name="touch">
269 <gshell:action class="org.apache.geronimo.gshell.commands.file.TouchAction" parent="vfsCommandActionTemplate"/>
270 <gshell:completers>
271 <ref bean="fileObjectNameCompleter"/>
272 <null/>
273 </gshell:completers>
274 </gshell:command>
275 </gshell:command-bundle>
276
277</beans>