123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509 |
- {
- "application": {
- "name": "My Symfony application",
- "version": "v1.0"
- },
- "commands": [
- {
- "name": "help",
- "hidden": false,
- "usage": [
- "help [--format FORMAT] [--raw] [--] [<command_name>]"
- ],
- "description": "Displays help for a command",
- "help": "The <info>help<\/info> command displays help for a given command:\n\n <info>php app\/console help list<\/info>\n\nYou can also output the help in other formats by using the <comment>--format<\/comment> option:\n\n <info>php app\/console help --format=xml list<\/info>\n\nTo display the list of available commands, please use the <info>list<\/info> command.",
- "definition": {
- "arguments": {
- "command_name": {
- "name": "command_name",
- "is_required": false,
- "is_array": false,
- "description": "The command name",
- "default": "help"
- }
- },
- "options": {
- "format": {
- "name": "--format",
- "shortcut": "",
- "accept_value": true,
- "is_value_required": true,
- "is_multiple": false,
- "description": "The output format (txt, xml, json, or md)",
- "default": "txt"
- },
- "raw": {
- "name": "--raw",
- "shortcut": "",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "To output raw command help",
- "default": false
- },
- "help": {
- "name": "--help",
- "shortcut": "-h",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Display this help message",
- "default": false
- },
- "quiet": {
- "name": "--quiet",
- "shortcut": "-q",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Do not output any message",
- "default": false
- },
- "verbose": {
- "name": "--verbose",
- "shortcut": "-v|-vv|-vvv",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug",
- "default": false
- },
- "version": {
- "name": "--version",
- "shortcut": "-V",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Display this application version",
- "default": false
- },
- "ansi": {
- "name": "--ansi",
- "shortcut": "",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Force ANSI output",
- "default": false
- },
- "no-ansi": {
- "name": "--no-ansi",
- "shortcut": "",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Disable ANSI output",
- "default": false
- },
- "no-interaction": {
- "name": "--no-interaction",
- "shortcut": "-n",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Do not ask any interactive question",
- "default": false
- }
- }
- }
- },
- {
- "name": "list",
- "hidden": false,
- "usage": [
- "list [--raw] [--format FORMAT] [--] [<namespace>]"
- ],
- "description": "Lists commands",
- "help": "The <info>list<\/info> command lists all commands:\n\n <info>php app\/console list<\/info>\n\nYou can also display the commands for a specific namespace:\n\n <info>php app\/console list test<\/info>\n\nYou can also output the information in other formats by using the <comment>--format<\/comment> option:\n\n <info>php app\/console list --format=xml<\/info>\n\nIt's also possible to get raw list of commands (useful for embedding command runner):\n\n <info>php app\/console list --raw<\/info>",
- "definition": {
- "arguments": {
- "namespace": {
- "name": "namespace",
- "is_required": false,
- "is_array": false,
- "description": "The namespace name",
- "default": null
- }
- },
- "options": {
- "raw": {
- "name": "--raw",
- "shortcut": "",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "To output raw command list",
- "default": false
- },
- "format": {
- "name": "--format",
- "shortcut": "",
- "accept_value": true,
- "is_value_required": true,
- "is_multiple": false,
- "description": "The output format (txt, xml, json, or md)",
- "default": "txt"
- }
- }
- }
- },
- {
- "name": "descriptor:command1",
- "hidden": false,
- "usage": [
- "descriptor:command1",
- "alias1",
- "alias2"
- ],
- "description": "command 1 description",
- "help": "command 1 help",
- "definition": {
- "arguments": [],
- "options": {
- "help": {
- "name": "--help",
- "shortcut": "-h",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Display this help message",
- "default": false
- },
- "quiet": {
- "name": "--quiet",
- "shortcut": "-q",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Do not output any message",
- "default": false
- },
- "verbose": {
- "name": "--verbose",
- "shortcut": "-v|-vv|-vvv",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug",
- "default": false
- },
- "version": {
- "name": "--version",
- "shortcut": "-V",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Display this application version",
- "default": false
- },
- "ansi": {
- "name": "--ansi",
- "shortcut": "",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Force ANSI output",
- "default": false
- },
- "no-ansi": {
- "name": "--no-ansi",
- "shortcut": "",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Disable ANSI output",
- "default": false
- },
- "no-interaction": {
- "name": "--no-interaction",
- "shortcut": "-n",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Do not ask any interactive question",
- "default": false
- }
- }
- }
- },
- {
- "name": "descriptor:command2",
- "hidden": false,
- "usage": [
- "descriptor:command2 [-o|--option_name] [--] <argument_name>",
- "descriptor:command2 -o|--option_name <argument_name>",
- "descriptor:command2 <argument_name>"
- ],
- "description": "command 2 description",
- "help": "command 2 help",
- "definition": {
- "arguments": {
- "argument_name": {
- "name": "argument_name",
- "is_required": true,
- "is_array": false,
- "description": "",
- "default": null
- }
- },
- "options": {
- "option_name": {
- "name": "--option_name",
- "shortcut": "-o",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "",
- "default": false
- },
- "help": {
- "name": "--help",
- "shortcut": "-h",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Display this help message",
- "default": false
- },
- "quiet": {
- "name": "--quiet",
- "shortcut": "-q",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Do not output any message",
- "default": false
- },
- "verbose": {
- "name": "--verbose",
- "shortcut": "-v|-vv|-vvv",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug",
- "default": false
- },
- "version": {
- "name": "--version",
- "shortcut": "-V",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Display this application version",
- "default": false
- },
- "ansi": {
- "name": "--ansi",
- "shortcut": "",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Force ANSI output",
- "default": false
- },
- "no-ansi": {
- "name": "--no-ansi",
- "shortcut": "",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Disable ANSI output",
- "default": false
- },
- "no-interaction": {
- "name": "--no-interaction",
- "shortcut": "-n",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Do not ask any interactive question",
- "default": false
- }
- }
- }
- },
- {
- "name": "descriptor:command3",
- "hidden": true,
- "usage": [
- "descriptor:command3"
- ],
- "description": "command 3 description",
- "help": "command 3 help",
- "definition": {
- "arguments": {},
- "options": {
- "help": {
- "name": "--help",
- "shortcut": "-h",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Display this help message",
- "default": false
- },
- "quiet": {
- "name": "--quiet",
- "shortcut": "-q",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Do not output any message",
- "default": false
- },
- "verbose": {
- "name": "--verbose",
- "shortcut": "-v|-vv|-vvv",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug",
- "default": false
- },
- "version": {
- "name": "--version",
- "shortcut": "-V",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Display this application version",
- "default": false
- },
- "ansi": {
- "name": "--ansi",
- "shortcut": "",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Force ANSI output",
- "default": false
- },
- "no-ansi": {
- "name": "--no-ansi",
- "shortcut": "",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Disable ANSI output",
- "default": false
- },
- "no-interaction": {
- "name": "--no-interaction",
- "shortcut": "-n",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Do not ask any interactive question",
- "default": false
- }
- }
- }
- },
- {
- "name": "descriptor:command4",
- "hidden": false,
- "usage": [
- "descriptor:command4",
- "descriptor:alias_command4",
- "command4:descriptor"
- ],
- "description": null,
- "help": "",
- "definition": {
- "arguments": {},
- "options": {
- "help": {
- "name": "--help",
- "shortcut": "-h",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Display this help message",
- "default": false
- },
- "quiet": {
- "name": "--quiet",
- "shortcut": "-q",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Do not output any message",
- "default": false
- },
- "verbose": {
- "name": "--verbose",
- "shortcut": "-v|-vv|-vvv",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug",
- "default": false
- },
- "version": {
- "name": "--version",
- "shortcut": "-V",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Display this application version",
- "default": false
- },
- "ansi": {
- "name": "--ansi",
- "shortcut": "",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Force ANSI output",
- "default": false
- },
- "no-ansi": {
- "name": "--no-ansi",
- "shortcut": "",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Disable ANSI output",
- "default": false
- },
- "no-interaction": {
- "name": "--no-interaction",
- "shortcut": "-n",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Do not ask any interactive question",
- "default": false
- }
- }
- }
- }
- ],
- "namespaces": [
- {
- "id": "_global",
- "commands": [
- "alias1",
- "alias2",
- "help",
- "list"
- ]
- },
- {
- "id": "command4",
- "commands": [
- "command4:descriptor"
- ]
- },
- {
- "id": "descriptor",
- "commands": [
- "descriptor:alias_command4",
- "descriptor:command1",
- "descriptor:command2",
- "descriptor:command3",
- "descriptor:command4"
- ]
- }
- ]
- }
|