Instead, we want to be able to also allow commands to have sub-commands, which would provide a nested dictionary of commands rather than a function. Also, the help messages are redundant if the shell functions are properly documented with a docstring referred to by trim(fun.__doc__). Therefore, they need not be represented in this structure. An illustration follows.
The following is the current command structure.
Instead, we want to be able to also allow commands to have sub-commands, which would provide a nested dictionary of commands rather than a function. Also, the help messages are redundant if the shell functions are properly documented with a docstring referred to by
trim(fun.__doc__)
. Therefore, they need not be represented in this structure. An illustration follows.