restructure of verify module for better code organizations

This commit is contained in:
Chris Punches
2025-03-30 22:56:13 -04:00
parent 25f9afd1c8
commit 045294aeb6
8 changed files with 204 additions and 123 deletions

View File

@@ -0,0 +1,27 @@
#pragma once
#include <string>
#include <cstring>
/**
* @enum Command
* @brief Enumeration of supported commands for the verify module
*/
enum Command {
CMD_UNKNOWN, /**< Unknown or unsupported command */
CMD_HELP, /**< Display help information */
CMD_CHECKSUM, /**< Verify package checksums */
CMD_SIGNATURE, /**< Verify package signatures */
CMD_CHECK /**< Check build module integration */
};
/**
* @brief Parses a command string into a Command enum value
*
* Converts a command string to the appropriate Command enum value
* for internal routing.
*
* @param cmd_str The command string to parse
* @return The corresponding Command enum value
*/
Command parse_command(const char* cmd_str);