cleaned up some of the module views
parent
a924a245df
commit
2cd350c910
|
@ -86,7 +86,7 @@ extern "C" const char* dpm_get_description(void) {
|
||||||
* @return 0 on success, non-zero on failure
|
* @return 0 on success, non-zero on failure
|
||||||
*/
|
*/
|
||||||
extern "C" int dpm_module_execute(const char* command, int argc, char** argv) {
|
extern "C" int dpm_module_execute(const char* command, int argc, char** argv) {
|
||||||
dpm_log(LOG_INFO, "Info module execution started");
|
dpm_log(LOG_DEBUG, "Info module execution started.");
|
||||||
|
|
||||||
Command cmd = parse_command(command);
|
Command cmd = parse_command(command);
|
||||||
|
|
||||||
|
|
|
@ -83,12 +83,16 @@ std::string detect_os() {
|
||||||
* Command handler for help command
|
* Command handler for help command
|
||||||
*/
|
*/
|
||||||
int cmd_help(int argc, char** argv) {
|
int cmd_help(int argc, char** argv) {
|
||||||
dpm_log(LOG_INFO, "DPM Info Module - Provides information about the DPM system");
|
dpm_log(LOG_INFO, "DPM Info Module - Provides information about the system.");
|
||||||
|
dpm_log(LOG_INFO, "");
|
||||||
dpm_log(LOG_INFO, "Available commands:");
|
dpm_log(LOG_INFO, "Available commands:");
|
||||||
|
dpm_log(LOG_INFO, "");
|
||||||
dpm_log(LOG_INFO, " version - Display DPM version information");
|
dpm_log(LOG_INFO, " version - Display DPM version information");
|
||||||
dpm_log(LOG_INFO, " system - Display system information");
|
dpm_log(LOG_INFO, " system - Display system information");
|
||||||
dpm_log(LOG_INFO, " config - Display configuration information");
|
dpm_log(LOG_INFO, " config - Display configuration information");
|
||||||
dpm_log(LOG_INFO, " help - Display this help message");
|
dpm_log(LOG_INFO, " help - Display this help message");
|
||||||
|
dpm_log(LOG_INFO, "");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue