Extract command names and descriptions into a single commandDescriptions slice and add a renderCommandList() helper function.
This eliminates the duplication where the command list appeared twice. Once in the help menu and again in the invalid command error message. Adding or removing commands now only requires updating one location.
Extract command names and descriptions into a single
commandDescriptionsslice and add arenderCommandList()helper function.This eliminates the duplication where the command list appeared twice. Once in the help menu and again in the invalid command error message. Adding or removing commands now only requires updating one location.