application_2.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <symfony name="My Symfony application" version="v1.0">
  3. <commands>
  4. <command id="help" name="help" hidden="0">
  5. <usages>
  6. <usage>help [--format FORMAT] [--raw] [--] [&lt;command_name&gt;]</usage>
  7. </usages>
  8. <description>Displays help for a command</description>
  9. <help>The &lt;info&gt;help&lt;/info&gt; command displays help for a given command:
  10. &lt;info&gt;php app/console help list&lt;/info&gt;
  11. You can also output the help in other formats by using the &lt;comment&gt;--format&lt;/comment&gt; option:
  12. &lt;info&gt;php app/console help --format=xml list&lt;/info&gt;
  13. To display the list of available commands, please use the &lt;info&gt;list&lt;/info&gt; command.</help>
  14. <arguments>
  15. <argument name="command_name" is_required="0" is_array="0">
  16. <description>The command name</description>
  17. <defaults>
  18. <default>help</default>
  19. </defaults>
  20. </argument>
  21. </arguments>
  22. <options>
  23. <option name="--format" shortcut="" accept_value="1" is_value_required="1" is_multiple="0">
  24. <description>The output format (txt, xml, json, or md)</description>
  25. <defaults>
  26. <default>txt</default>
  27. </defaults>
  28. </option>
  29. <option name="--raw" shortcut="" accept_value="0" is_value_required="0" is_multiple="0">
  30. <description>To output raw command help</description>
  31. </option>
  32. <option name="--help" shortcut="-h" accept_value="0" is_value_required="0" is_multiple="0">
  33. <description>Display this help message</description>
  34. </option>
  35. <option name="--quiet" shortcut="-q" accept_value="0" is_value_required="0" is_multiple="0">
  36. <description>Do not output any message</description>
  37. </option>
  38. <option name="--verbose" shortcut="-v" shortcuts="-v|-vv|-vvv" accept_value="0" is_value_required="0" is_multiple="0">
  39. <description>Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug</description>
  40. </option>
  41. <option name="--version" shortcut="-V" accept_value="0" is_value_required="0" is_multiple="0">
  42. <description>Display this application version</description>
  43. </option>
  44. <option name="--ansi" shortcut="" accept_value="0" is_value_required="0" is_multiple="0">
  45. <description>Force ANSI output</description>
  46. </option>
  47. <option name="--no-ansi" shortcut="" accept_value="0" is_value_required="0" is_multiple="0">
  48. <description>Disable ANSI output</description>
  49. </option>
  50. <option name="--no-interaction" shortcut="-n" accept_value="0" is_value_required="0" is_multiple="0">
  51. <description>Do not ask any interactive question</description>
  52. </option>
  53. </options>
  54. </command>
  55. <command id="list" name="list" hidden="0">
  56. <usages>
  57. <usage>list [--raw] [--format FORMAT] [--] [&lt;namespace&gt;]</usage>
  58. </usages>
  59. <description>Lists commands</description>
  60. <help>The &lt;info&gt;list&lt;/info&gt; command lists all commands:
  61. &lt;info&gt;php app/console list&lt;/info&gt;
  62. You can also display the commands for a specific namespace:
  63. &lt;info&gt;php app/console list test&lt;/info&gt;
  64. You can also output the information in other formats by using the &lt;comment&gt;--format&lt;/comment&gt; option:
  65. &lt;info&gt;php app/console list --format=xml&lt;/info&gt;
  66. It's also possible to get raw list of commands (useful for embedding command runner):
  67. &lt;info&gt;php app/console list --raw&lt;/info&gt;</help>
  68. <arguments>
  69. <argument name="namespace" is_required="0" is_array="0">
  70. <description>The namespace name</description>
  71. <defaults/>
  72. </argument>
  73. </arguments>
  74. <options>
  75. <option name="--raw" shortcut="" accept_value="0" is_value_required="0" is_multiple="0">
  76. <description>To output raw command list</description>
  77. </option>
  78. <option name="--format" shortcut="" accept_value="1" is_value_required="1" is_multiple="0">
  79. <description>The output format (txt, xml, json, or md)</description>
  80. <defaults>
  81. <default>txt</default>
  82. </defaults>
  83. </option>
  84. </options>
  85. </command>
  86. <command id="descriptor:command1" name="descriptor:command1" hidden="0">
  87. <usages>
  88. <usage>descriptor:command1</usage>
  89. <usage>alias1</usage>
  90. <usage>alias2</usage>
  91. </usages>
  92. <description>command 1 description</description>
  93. <help>command 1 help</help>
  94. <arguments/>
  95. <options>
  96. <option name="--help" shortcut="-h" accept_value="0" is_value_required="0" is_multiple="0">
  97. <description>Display this help message</description>
  98. </option>
  99. <option name="--quiet" shortcut="-q" accept_value="0" is_value_required="0" is_multiple="0">
  100. <description>Do not output any message</description>
  101. </option>
  102. <option name="--verbose" shortcut="-v" shortcuts="-v|-vv|-vvv" accept_value="0" is_value_required="0" is_multiple="0">
  103. <description>Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug</description>
  104. </option>
  105. <option name="--version" shortcut="-V" accept_value="0" is_value_required="0" is_multiple="0">
  106. <description>Display this application version</description>
  107. </option>
  108. <option name="--ansi" shortcut="" accept_value="0" is_value_required="0" is_multiple="0">
  109. <description>Force ANSI output</description>
  110. </option>
  111. <option name="--no-ansi" shortcut="" accept_value="0" is_value_required="0" is_multiple="0">
  112. <description>Disable ANSI output</description>
  113. </option>
  114. <option name="--no-interaction" shortcut="-n" accept_value="0" is_value_required="0" is_multiple="0">
  115. <description>Do not ask any interactive question</description>
  116. </option>
  117. </options>
  118. </command>
  119. <command id="descriptor:command2" name="descriptor:command2" hidden="0">
  120. <usages>
  121. <usage>descriptor:command2 [-o|--option_name] [--] &lt;argument_name&gt;</usage>
  122. <usage>descriptor:command2 -o|--option_name &lt;argument_name&gt;</usage>
  123. <usage>descriptor:command2 &lt;argument_name&gt;</usage>
  124. </usages>
  125. <description>command 2 description</description>
  126. <help>command 2 help</help>
  127. <arguments>
  128. <argument name="argument_name" is_required="1" is_array="0">
  129. <description></description>
  130. <defaults/>
  131. </argument>
  132. </arguments>
  133. <options>
  134. <option name="--option_name" shortcut="-o" accept_value="0" is_value_required="0" is_multiple="0">
  135. <description></description>
  136. </option>
  137. <option name="--help" shortcut="-h" accept_value="0" is_value_required="0" is_multiple="0">
  138. <description>Display this help message</description>
  139. </option>
  140. <option name="--quiet" shortcut="-q" accept_value="0" is_value_required="0" is_multiple="0">
  141. <description>Do not output any message</description>
  142. </option>
  143. <option name="--verbose" shortcut="-v" shortcuts="-v|-vv|-vvv" accept_value="0" is_value_required="0" is_multiple="0">
  144. <description>Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug</description>
  145. </option>
  146. <option name="--version" shortcut="-V" accept_value="0" is_value_required="0" is_multiple="0">
  147. <description>Display this application version</description>
  148. </option>
  149. <option name="--ansi" shortcut="" accept_value="0" is_value_required="0" is_multiple="0">
  150. <description>Force ANSI output</description>
  151. </option>
  152. <option name="--no-ansi" shortcut="" accept_value="0" is_value_required="0" is_multiple="0">
  153. <description>Disable ANSI output</description>
  154. </option>
  155. <option name="--no-interaction" shortcut="-n" accept_value="0" is_value_required="0" is_multiple="0">
  156. <description>Do not ask any interactive question</description>
  157. </option>
  158. </options>
  159. </command>
  160. <command id="descriptor:command3" name="descriptor:command3" hidden="1">
  161. <usages>
  162. <usage>descriptor:command3</usage>
  163. </usages>
  164. <description>command 3 description</description>
  165. <help>command 3 help</help>
  166. <arguments/>
  167. <options>
  168. <option name="--help" shortcut="-h" accept_value="0" is_value_required="0" is_multiple="0">
  169. <description>Display this help message</description>
  170. </option>
  171. <option name="--quiet" shortcut="-q" accept_value="0" is_value_required="0" is_multiple="0">
  172. <description>Do not output any message</description>
  173. </option>
  174. <option name="--verbose" shortcut="-v" shortcuts="-v|-vv|-vvv" accept_value="0" is_value_required="0" is_multiple="0">
  175. <description>Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug</description>
  176. </option>
  177. <option name="--version" shortcut="-V" accept_value="0" is_value_required="0" is_multiple="0">
  178. <description>Display this application version</description>
  179. </option>
  180. <option name="--ansi" shortcut="" accept_value="0" is_value_required="0" is_multiple="0">
  181. <description>Force ANSI output</description>
  182. </option>
  183. <option name="--no-ansi" shortcut="" accept_value="0" is_value_required="0" is_multiple="0">
  184. <description>Disable ANSI output</description>
  185. </option>
  186. <option name="--no-interaction" shortcut="-n" accept_value="0" is_value_required="0" is_multiple="0">
  187. <description>Do not ask any interactive question</description>
  188. </option>
  189. </options>
  190. </command>
  191. <command id="descriptor:command4" name="descriptor:command4" hidden="0">
  192. <usages>
  193. <usage>descriptor:command4</usage>
  194. <usage>descriptor:alias_command4</usage>
  195. <usage>command4:descriptor</usage>
  196. </usages>
  197. <description></description>
  198. <help></help>
  199. <arguments/>
  200. <options>
  201. <option name="--help" shortcut="-h" accept_value="0" is_value_required="0" is_multiple="0">
  202. <description>Display this help message</description>
  203. </option>
  204. <option name="--quiet" shortcut="-q" accept_value="0" is_value_required="0" is_multiple="0">
  205. <description>Do not output any message</description>
  206. </option>
  207. <option name="--verbose" shortcut="-v" shortcuts="-v|-vv|-vvv" accept_value="0" is_value_required="0" is_multiple="0">
  208. <description>Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug</description>
  209. </option>
  210. <option name="--version" shortcut="-V" accept_value="0" is_value_required="0" is_multiple="0">
  211. <description>Display this application version</description>
  212. </option>
  213. <option name="--ansi" shortcut="" accept_value="0" is_value_required="0" is_multiple="0">
  214. <description>Force ANSI output</description>
  215. </option>
  216. <option name="--no-ansi" shortcut="" accept_value="0" is_value_required="0" is_multiple="0">
  217. <description>Disable ANSI output</description>
  218. </option>
  219. <option name="--no-interaction" shortcut="-n" accept_value="0" is_value_required="0" is_multiple="0">
  220. <description>Do not ask any interactive question</description>
  221. </option>
  222. </options>
  223. </command>
  224. </commands>
  225. <namespaces>
  226. <namespace id="_global">
  227. <command>alias1</command>
  228. <command>alias2</command>
  229. <command>help</command>
  230. <command>list</command>
  231. </namespace>
  232. <namespace id="command4">
  233. <command>command4:descriptor</command>
  234. </namespace>
  235. <namespace id="descriptor">
  236. <command>descriptor:alias_command4</command>
  237. <command>descriptor:command1</command>
  238. <command>descriptor:command2</command>
  239. <command>descriptor:command3</command>
  240. <command>descriptor:command4</command>
  241. </namespace>
  242. </namespaces>
  243. </symfony>