You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor #18664 [Console] Add more examples for lazy commands (theofidry)
This PR was submitted for the 6.4 branch but it was squashed and merged into the 6.3 branch instead.
Discussion
----------
[Console] Add more examples for lazy commands
I think the current doc is a bit confusing regarding the laziness of commands:
- It does not mention `LazyCommand` which is quite important to make a command lazy in a way it still works with the `list` command which is used a lot.
- The `list` doc regarding instantiating the commands is a bit too absolute. Technically it is not wrong but there is also more subtleties to it. Indeed what it will really do is instantiate the command and then try to get the name and description. Which also means if the underlying command/factory can still not be instantiated (either by tweaking `Command` or using `LazyCommand`). This is unlike another command like the auto-complete or help which will try to get the input definition in which case even a `LazyCommand` will call its command factory.
I am not sure which branch it should target however and I am sure there is a lot to say about the phrasing used.
Commits
-------
5f063a2 [Console] Add more examples for lazy commands
0 commit comments