blob: 1acd1f9bd5979e158d94dad54a7efcaae0d54470 [file] [log] [blame]
Guillaume Nodet6b2946d2009-06-18 20:57:23 +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<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0">
21
22 <command-bundle xmlns="http://felix.apache.org/karaf/xmlns/gshell/v1.0.0">
23 <command name="about">
24 <action class="org.apache.geronimo.gshell.commands.builtin.AboutAction">
25 <argument ref="application"/>
26 </action>
27 </command>
28
29 <command name="help">
30 <action class="org.apache.geronimo.gshell.commands.builtin.HelpAction">
31 <argument ref="commandResolver"/>
32 </action>
33 <completers>
34 <bean class="org.apache.geronimo.gshell.console.completer.AggregateCompleter">
35 <argument xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0">
36 <list>
37 <ref component-id="aliasNameCompleter"/>
38 <ref component-id="commandNameCompleter"/>
39 </list>
40 </argument>
41 </bean>
42 <null/>
43 </completers>
44 </command>
45
46 <command name="exit">
47 <action class="org.apache.geronimo.gshell.commands.builtin.ExitAction"/>
48 </command>
49
50 <link name="quit" target="exit"/>
51
52 <command name="echo">
53 <action class="org.apache.geronimo.gshell.commands.builtin.EchoAction"/>
54 </command>
55
56 <command name="clear">
57 <action class="org.apache.geronimo.gshell.commands.builtin.ClearAction"/>
58 </command>
59
60 <command name="source">
61 <action class="org.apache.geronimo.gshell.commands.builtin.SourceAction">
62 <argument ref="commandLineExecutor"/>
63 <argument ref="fileSystemAccess"/>
64 </action>
65 <completers>
66 <ref component-id="fileObjectNameCompleter"/>
67 <null/>
68 </completers>
69 </command>
70
71 <command name="set">
72 <action class="org.apache.geronimo.gshell.commands.builtin.SetAction"/>
73 </command>
74
75 <command name="unset">
76 <action class="org.apache.geronimo.gshell.commands.builtin.UnsetAction"/>
77 <completers>
78 <ref component-id="variableNameCompleter"/>
79 <null/>
80 </completers>
81 </command>
82
83 <command name="alias">
84 <action class="org.apache.geronimo.gshell.commands.builtin.AliasAction">
85 <argument ref="aliasRegistry"/>
86 </action>
87 </command>
88
89 <command name="unalias">
90 <action class="org.apache.geronimo.gshell.commands.builtin.UnaliasAction">
91 <argument ref="aliasRegistry"/>
92 </action>
93 <completers>
94 <ref component-id="aliasNameCompleter"/>
95 <null/>
96 </completers>
97 </command>
98
99 <command name="history">
100 <action class="org.apache.geronimo.gshell.commands.builtin.HistoryAction"/>
101 </command>
102
103 <command name="info">
104 <action class="org.apache.felix.karaf.gshell.core.commands.InfoAction">
105 <argument ref="branding" />
106 </action>
107 </command>
108 </command-bundle>
109
110 <command-bundle xmlns="http://felix.apache.org/karaf/xmlns/gshell/v1.0.0">
111 <command name="ssh">
112 <action class="org.apache.geronimo.gshell.commands.ssh.SshAction"/>
113 </command>
114
115 <command name="sshd">
116 <action class="org.apache.geronimo.gshell.commands.ssh.SshServerAction"/>
117 </command>
118 </command-bundle>
119
120 <command-bundle xmlns="http://felix.apache.org/karaf/xmlns/gshell/v1.0.0">
121 <command name="exec">
122 <action class="org.apache.geronimo.gshell.commands.shell.ExecuteAction"/>
123 </command>
124
125 <command name="java">
126 <action class="org.apache.geronimo.gshell.commands.shell.JavaAction"/>
127 </command>
128
129 <command name="sleep">
130 <action class="org.apache.geronimo.gshell.commands.shell.SleepAction"/>
131 </command>
132
133 <command name="date">
134 <action class="org.apache.geronimo.gshell.commands.shell.DateAction"/>
135 </command>
136
137 <command name="edit">
138 <action class="org.apache.geronimo.gshell.commands.shell.EditAction">
139 <property name="fileSystemAccess" ref="fileSystemAccess"/>
140 </action>
141 <completers>
142 <ref component-id="fileObjectNameCompleter"/>
143 <null/>
144 </completers>
145 </command>
146
147 <command name="find">
148 <action class="org.apache.geronimo.gshell.commands.shell.FindAction">
149 <property name="fileSystemAccess" ref="fileSystemAccess"/>
150 </action>
151 <completers>
152 <ref component-id="fileObjectNameCompleter"/>
153 <null/>
154 </completers>
155 </command>
156
157 <command name="sort">
158 <action class="org.apache.geronimo.gshell.commands.text.SortAction">
159 <property name="fileSystemAccess" ref="fileSystemAccess"/>
160 </action>
161 <completers>
162 <ref component-id="fileObjectNameCompleter"/>
163 <null/>
164 </completers>
165 </command>
166 </command-bundle>
167
168 <command-bundle xmlns="http://felix.apache.org/karaf/xmlns/gshell/v1.0.0">
169 <command name="hostname">
170 <action class="org.apache.geronimo.gshell.commands.network.HostnameAction"/>
171 </command>
172 </command-bundle>
173
174 <command-bundle xmlns="http://felix.apache.org/karaf/xmlns/gshell/v1.0.0">
175 <link name="print" target="echo"/>
176
177 <command name="printf">
178 <action class="org.apache.geronimo.gshell.commands.text.PrintfAction"/>
179 </command>
180
181 <command name="cat">
182 <action class="org.apache.geronimo.gshell.commands.text.CatAction">
183 <property name="fileSystemAccess" ref="fileSystemAccess"/>
184 </action>
185 <completers>
186 <ref component-id="fileObjectNameCompleter"/>
187 <null/>
188 </completers>
189 </command>
190
191 <command name="grep">
192 <action class="org.apache.geronimo.gshell.commands.text.GrepAction"/>
193 </command>
194 </command-bundle>
195
196 <command-bundle xmlns="http://felix.apache.org/karaf/xmlns/gshell/v1.0.0">
197 <command name="cd">
198 <action class="org.apache.geronimo.gshell.commands.file.ChangeDirectoryAction">
199 <property name="fileSystemAccess" ref="fileSystemAccess"/>
200 </action>
201 <completers>
202 <ref component-id="fileObjectNameCompleter"/>
203 <null/>
204 </completers>
205 </command>
206
207 <command name="pwd">
208 <action class="org.apache.geronimo.gshell.commands.file.CurrentDirectoryAction">
209 <property name="fileSystemAccess" ref="fileSystemAccess"/>
210 </action>
211 </command>
212
213 <command name="ls">
214 <action class="org.apache.geronimo.gshell.commands.file.ListDirectoryAction">
215 <property name="fileSystemAccess" ref="fileSystemAccess"/>
216 </action>
217 <completers>
218 <ref component-id="fileObjectNameCompleter"/>
219 <null/>
220 </completers>
221 </command>
222
223 <link name="dir" target="ls"/>
224
225 <command name="cp">
226 <action class="org.apache.geronimo.gshell.commands.file.CopyAction">
227 <property name="fileSystemAccess" ref="fileSystemAccess"/>
228 </action>
229 <completers>
230 <ref component-id="fileObjectNameCompleter"/>
231 <ref component-id="fileObjectNameCompleter"/>
232 <null/>
233 </completers>
234 </command>
235
236 <link name="copy" target="cp"/>
237
238 <command name="rm">
239 <action class="org.apache.geronimo.gshell.commands.file.RemoveAction">
240 <property name="fileSystemAccess" ref="fileSystemAccess"/>
241 </action>
242 <completers>
243 <ref component-id="fileObjectNameCompleter"/>
244 <null/>
245 </completers>
246 </command>
247
248 <link name="del" target="rm"/>
249
250 <command name="fileinfo">
251 <action class="org.apache.geronimo.gshell.commands.file.FileInfoAction">
252 <property name="fileSystemAccess" ref="fileSystemAccess"/>
253 </action>
254 <completers>
255 <ref component-id="fileObjectNameCompleter"/>
256 <null/>
257 </completers>
258 </command>
259
260 <command name="touch">
261 <action class="org.apache.geronimo.gshell.commands.file.TouchAction">
262 <property name="fileSystemAccess" ref="fileSystemAccess"/>
263 </action>
264 <completers>
265 <ref component-id="fileObjectNameCompleter"/>
266 <null/>
267 </completers>
268 </command>
269 </command-bundle>
270
271</blueprint>