application_2.xml 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  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">
  5. <usages>
  6. <usage>help [--xml] [--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="--xml" shortcut="" accept_value="0" is_value_required="0" is_multiple="0">
  24. <description>To output help as XML</description>
  25. </option>
  26. <option name="--format" shortcut="" accept_value="1" is_value_required="1" is_multiple="0">
  27. <description>The output format (txt, xml, json, or md)</description>
  28. <defaults>
  29. <default>txt</default>
  30. </defaults>
  31. </option>
  32. <option name="--raw" shortcut="" accept_value="0" is_value_required="0" is_multiple="0">
  33. <description>To output raw command help</description>
  34. </option>
  35. <option name="--help" shortcut="-h" accept_value="0" is_value_required="0" is_multiple="0">
  36. <description>Display this help message</description>
  37. </option>
  38. <option name="--quiet" shortcut="-q" accept_value="0" is_value_required="0" is_multiple="0">
  39. <description>Do not output any message</description>
  40. </option>
  41. <option name="--verbose" shortcut="-v" shortcuts="-v|-vv|-vvv" accept_value="0" is_value_required="0" is_multiple="0">
  42. <description>Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug</description>
  43. </option>
  44. <option name="--version" shortcut="-V" accept_value="0" is_value_required="0" is_multiple="0">
  45. <description>Display this application version</description>
  46. </option>
  47. <option name="--ansi" shortcut="" accept_value="0" is_value_required="0" is_multiple="0">
  48. <description>Force ANSI output</description>
  49. </option>
  50. <option name="--no-ansi" shortcut="" accept_value="0" is_value_required="0" is_multiple="0">
  51. <description>Disable ANSI output</description>
  52. </option>
  53. <option name="--no-interaction" shortcut="-n" accept_value="0" is_value_required="0" is_multiple="0">
  54. <description>Do not ask any interactive question</description>
  55. </option>
  56. </options>
  57. </command>
  58. <command id="list" name="list">
  59. <usages>
  60. <usage>list [--xml] [--raw] [--format FORMAT] [--] [&lt;namespace&gt;]</usage>
  61. </usages>
  62. <description>Lists commands</description>
  63. <help>The &lt;info&gt;list&lt;/info&gt; command lists all commands:
  64. &lt;info&gt;php app/console list&lt;/info&gt;
  65. You can also display the commands for a specific namespace:
  66. &lt;info&gt;php app/console list test&lt;/info&gt;
  67. You can also output the information in other formats by using the &lt;comment&gt;--format&lt;/comment&gt; option:
  68. &lt;info&gt;php app/console list --format=xml&lt;/info&gt;
  69. It's also possible to get raw list of commands (useful for embedding command runner):
  70. &lt;info&gt;php app/console list --raw&lt;/info&gt;</help>
  71. <arguments>
  72. <argument name="namespace" is_required="0" is_array="0">
  73. <description>The namespace name</description>
  74. <defaults/>
  75. </argument>
  76. </arguments>
  77. <options>
  78. <option name="--xml" shortcut="" accept_value="0" is_value_required="0" is_multiple="0">
  79. <description>To output list as XML</description>
  80. </option>
  81. <option name="--raw" shortcut="" accept_value="0" is_value_required="0" is_multiple="0">
  82. <description>To output raw command list</description>
  83. </option>
  84. <option name="--format" shortcut="" accept_value="1" is_value_required="1" is_multiple="0">
  85. <description>The output format (txt, xml, json, or md)</description>
  86. <defaults>
  87. <default>txt</default>
  88. </defaults>
  89. </option>
  90. </options>
  91. </command>
  92. <command id="descriptor:command1" name="descriptor:command1">
  93. <usages>
  94. <usage>descriptor:command1</usage>
  95. <usage>alias1</usage>
  96. <usage>alias2</usage>
  97. </usages>
  98. <description>command 1 description</description>
  99. <help>command 1 help</help>
  100. <arguments/>
  101. <options>
  102. <option name="--help" shortcut="-h" accept_value="0" is_value_required="0" is_multiple="0">
  103. <description>Display this help message</description>
  104. </option>
  105. <option name="--quiet" shortcut="-q" accept_value="0" is_value_required="0" is_multiple="0">
  106. <description>Do not output any message</description>
  107. </option>
  108. <option name="--verbose" shortcut="-v" shortcuts="-v|-vv|-vvv" accept_value="0" is_value_required="0" is_multiple="0">
  109. <description>Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug</description>
  110. </option>
  111. <option name="--version" shortcut="-V" accept_value="0" is_value_required="0" is_multiple="0">
  112. <description>Display this application version</description>
  113. </option>
  114. <option name="--ansi" shortcut="" accept_value="0" is_value_required="0" is_multiple="0">
  115. <description>Force ANSI output</description>
  116. </option>
  117. <option name="--no-ansi" shortcut="" accept_value="0" is_value_required="0" is_multiple="0">
  118. <description>Disable ANSI output</description>
  119. </option>
  120. <option name="--no-interaction" shortcut="-n" accept_value="0" is_value_required="0" is_multiple="0">
  121. <description>Do not ask any interactive question</description>
  122. </option>
  123. </options>
  124. </command>
  125. <command id="descriptor:command2" name="descriptor:command2">
  126. <usages>
  127. <usage>descriptor:command2 [-o|--option_name] [--] &lt;argument_name&gt;</usage>
  128. <usage>descriptor:command2 -o|--option_name &lt;argument_name&gt;</usage>
  129. <usage>descriptor:command2 &lt;argument_name&gt;</usage>
  130. </usages>
  131. <description>command 2 description</description>
  132. <help>command 2 help</help>
  133. <arguments>
  134. <argument name="argument_name" is_required="1" is_array="0">
  135. <description></description>
  136. <defaults/>
  137. </argument>
  138. </arguments>
  139. <options>
  140. <option name="--option_name" shortcut="-o" accept_value="0" is_value_required="0" is_multiple="0">
  141. <description></description>
  142. </option>
  143. <option name="--help" shortcut="-h" accept_value="0" is_value_required="0" is_multiple="0">
  144. <description>Display this help message</description>
  145. </option>
  146. <option name="--quiet" shortcut="-q" accept_value="0" is_value_required="0" is_multiple="0">
  147. <description>Do not output any message</description>
  148. </option>
  149. <option name="--verbose" shortcut="-v" shortcuts="-v|-vv|-vvv" accept_value="0" is_value_required="0" is_multiple="0">
  150. <description>Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug</description>
  151. </option>
  152. <option name="--version" shortcut="-V" accept_value="0" is_value_required="0" is_multiple="0">
  153. <description>Display this application version</description>
  154. </option>
  155. <option name="--ansi" shortcut="" accept_value="0" is_value_required="0" is_multiple="0">
  156. <description>Force ANSI output</description>
  157. </option>
  158. <option name="--no-ansi" shortcut="" accept_value="0" is_value_required="0" is_multiple="0">
  159. <description>Disable ANSI output</description>
  160. </option>
  161. <option name="--no-interaction" shortcut="-n" accept_value="0" is_value_required="0" is_multiple="0">
  162. <description>Do not ask any interactive question</description>
  163. </option>
  164. </options>
  165. </command>
  166. </commands>
  167. <namespaces>
  168. <namespace id="_global">
  169. <command>alias1</command>
  170. <command>alias2</command>
  171. <command>help</command>
  172. <command>list</command>
  173. </namespace>
  174. <namespace id="descriptor">
  175. <command>descriptor:command1</command>
  176. <command>descriptor:command2</command>
  177. </namespace>
  178. </namespaces>
  179. </symfony>