starting the process of moving manifest mgmt to a dedicated subcommand

This commit is contained in:
Chris Punches
2025-03-16 23:16:40 -04:00
parent 172bc2e9c8
commit 2623bcf2b3
6 changed files with 116 additions and 5 deletions

View File

@@ -12,9 +12,10 @@
* @brief Enumeration of supported commands for the build module
*/
enum Command {
CMD_UNKNOWN, /**< Unknown or unsupported command */
CMD_HELP, /**< Display help information */
CMD_STAGE /**< Stage a new DPM package */
CMD_UNKNOWN, /**< Unknown or unsupported command */
CMD_HELP, /**< Display help information */
CMD_STAGE, /**< Stage a new DPM package */
CMD_MANIFEST, /**< Regenerate a stage manifest */
};
/**

View File

@@ -16,6 +16,17 @@
*/
int cmd_stage(int argc, char** argv);
/**
* @brief Handler for the manifest command
*
* Generates or refreshes package manifest.
*
* @param argc Number of arguments
* @param argv Array of arguments
* @return 0 on success, non-zero on failure
*/
int cmd_manifest(int argc, char** argv);
/**
* @brief Handler for the help command
*
@@ -39,6 +50,16 @@ int cmd_help(int argc, char** argv);
*/
int cmd_stage_help(int argc, char** argv);
/**
* @brief Handler for the manifest help command
*
* Displays information about manifest command options.
*
* @param argc Number of arguments
* @param argv Array of arguments
* @return 0 on success, non-zero on failure
*/
int cmd_manifest_help(int argc, char** argv);
/**
* @brief Handler for unknown commands