2024-12-18 December Adventure 2024: Day 18

December Adventure 2024: Day 18

MyCmd Registry Implementation

I was able to finish the main parts of the MyCmd Registry today.

I still need to re-implement the help and version information printing functions and support functions for those.

I also need to add documentation comments in mycmd-registry-lib to fully document the pattern.

I feel pretty good about this implementation. The common Registered Item (the entity in my ECS) is the implementation for Commands and Command Groups. The loading functions are simpler than my previous implementation and work the same for Commands and Command Groups.

Take a look at this diff comparing when I started doing cleanup of this code to now. There is only a net of 115 lines of code, and I have added more than that in documentation comments and documentation files. Once I re-implement the help functionality, that will probably be a net of a couple hundred lines of code at most.

I’m pretty proud of these changes.

MyCmd: Miscellaneous

These clean up tasks took less time than I thought it would be. Next steps are going to be re-implementing the MyCmd launcher code.

MyCmd Launcher Implementation

I started working on the MyCmd Launcher again.

My next steps are re-implementing full command-line parsing and dispatch in the launcher.

Dot Files

I also pushed commit c23c291b56d68312a8a1ab44b357b2cb9062d037 to update my personal MyCmd Command Groups and Commands to temporarily support the older MyCmd versions and my latest changes, so I can actively test my current MyCmd implementation with those scripts as well.


All of my December Adventure 2024 posts will be linked from here.