• Zachary T Welch's avatar
    refactor command registration · 9e9633c6
    Zachary T Welch authored
    Refactors the command registration to use helpers to simplify the code.
    The unregistration routines were made more flexible by allowing them
    to operate on a single command, such that one can remove all of a
    commands children in one step (perhaps before adding back a 'config'
    subcommand that allows getting the others back).  Eliminates a bit
    of duplicated code and adds full API documentation for these routines.