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
[shell] Reduce memory usage and boileplate code for subcommands
1. Add lightweight CommandSet class to prevent instantiating
Shell::Engine, which allows for dynamic command registration,
just to create a subshell with a fixed number of subcommands.
This slightly reduces the RAM usage.
Additionally, the command set automatically prints the help
texts if no command or "help" command has been submitted.
2. Add SubShellCommand templatized command handler to remove
the boilerplate associated with creating a subshell.
0 commit comments