davetcc / tcMenu

Menu library for Arduino, mbed and ESP with designer UI and remote control capabilities.
https://www.thecoderscorner.com/products/arduino-libraries/tc-menu/
Apache License 2.0
272 stars 25 forks source link

Provide a simple tcmenu CLI command that can help tidy project files #347

Closed davetcc closed 6 months ago

davetcc commented 1 year ago

Is your feature request related to a problem? Please describe. Given the i18n support is quite extensive, it is probably wise to have a simple "tidy" command in the CLI that can help a user clean up the internationalisation files. This would be simple and initially only try to compare the selected locale with the menu file, and check that all expected items exist.

Commerical or Personal use Commercial - davetcc

Describe the solution you'd like The tidy command should be able to check for items that are defined in the menu emf project and not in the properties file, and warn for each occaision. It should have a second mode of operation where it is able to show menu item properties that no longer exist in the emf project, to help the user clear out such entries.

Describe alternatives you've considered N/A

davetcc commented 1 year ago

Another thing the tidy function should be able to do, is to look at all callback functions in the main project source file and check against the project, to see if any are unused, providing a list of unused ones.

davetcc commented 6 months ago

closing this, since the i18n simplification should not be needed.