-
Notifications
You must be signed in to change notification settings - Fork 50
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
Suggestion: New Help as One for All #98
Comments
Imagine this:
|
For calling the help: if ($this->wantHelps) {
$this->wantHelps = false;
$helpCommand = $this->get('help');
$helpCommand->setCommand($command);
return $helpCommand;
} Looks like it pulls up the help command, still looking for unregistering help. |
Help command is built in: /**
* Gets the default commands that should always be available.
*
* @return Command[] An array of default Command instances
*/
protected function getDefaultCommands()
{
return [new HelpCommand(), new ListCommand()];
} Line 984 symfony/console/Application.php. Going to need to override the application and override that to replace the help command. |
Labeled as in progress and assigned as work on this has started in the mes/presets branch. |
Good news, it can be fixed by adding the Symfony help command to the "remove" block in |
Done. Scheduled for release in Beta 2 |
Hi, I would like to contribute by PR but not fully in control with the code structure at the moment, So I thought i could still make some suggestions.
The help function we talk on the live streaming, I think that could be something like this:
I believe we can convert
DisplayHelpScreen
class to handle lambo's and preset's help dynamically just passing the parameters to display.DisplayHelpScreen
class can acceptusages
,commands
,options
andflags
each as array with description if needed and display them on condition if received.Take a look at the concept code:
and lambo could use same way as any other presets. So this way, we could have a help template that displays different information for any use case. Passing the parameters could be done in a better way.
I didn't describe it too detailed because i think the idea is clear. It's a concept and i believe there is a lot of room to improve.
Thx
The text was updated successfully, but these errors were encountered: