-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Console] Show hidden commands in json & xml descriptors #21075
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,7 +64,7 @@ protected function describeCommand(Command $command, array $options = array()) | |
protected function describeApplication(Application $application, array $options = array()) | ||
{ | ||
$describedNamespace = isset($options['namespace']) ? $options['namespace'] : null; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The suggestion of Imo. we should rely on some |
||
$description = new ApplicationDescription($application, $describedNamespace); | ||
$description = new ApplicationDescription($application, $describedNamespace, true); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Imo. the descriptor option was nice :) anyway it's internal code.. we're good 👍 |
||
$commands = array(); | ||
|
||
foreach ($description->getCommands() as $command) { | ||
|
@@ -173,6 +173,7 @@ private function getCommandData(Command $command) | |
'description' => $command->getDescription(), | ||
'help' => $command->getProcessedHelp(), | ||
'definition' => $this->getInputDefinitionData($command->getNativeDefinition()), | ||
'hidden' => $command->isHidden(), | ||
); | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"name": "descriptor:command1", | ||
"hidden": false, | ||
"usage": [ | ||
"descriptor:command1", | ||
"alias1", | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This feature is good for sure 👍 same for updated outputs.