cleaned up entry point for dpm core

This commit is contained in:
Chris Punches
2025-03-08 21:52:04 -05:00
parent 255debef50
commit 525462a144
3 changed files with 38 additions and 12 deletions

View File

@@ -86,4 +86,20 @@ int main_list_modules(const ModuleLoader& loader);
*/
int main_show_help();
/**
* @brief Executes a DPM module with the specified command
*
* Attempts to execute the specified module with the given command string and
* handles any errors that occur during execution. If the execution is successful,
* returns 0. If an error occurs, constructs an appropriate error context and
* processes it through the error handling system.
*
* @param loader Reference to a ModuleLoader object that provides access to modules
* @param module_name Name of the module to execute
* @param command Command string to pass to the module
* @return 0 on successful execution, appropriate error code otherwise
*/
int main_execute_module( const ModuleLoader& loader, std::string module_name, std::string command );
/** @} */ // end of dpm_interface group