Add partial framework for registering commands
Update generated C