fleshing out package workflow

This commit is contained in:
Chris Punches
2025-03-12 20:05:59 -04:00
parent 1a97621a53
commit 80de44b1b6
5 changed files with 22 additions and 46 deletions

View File

@@ -14,7 +14,7 @@
enum Command {
CMD_UNKNOWN, /**< Unknown or unsupported command */
CMD_HELP, /**< Display help information */
CMD_CREATE /**< Create a new DPM package */
CMD_STAGE /**< Stage a new DPM package */
};
/**
@@ -24,7 +24,6 @@ enum Command {
struct BuildOptions {
std::string output_dir; /**< Directory where to save the built package */
std::string contents_dir; /**< Directory with package contents */
std::string metadata_dir; /**< Directory with package metadata */
std::string hooks_dir; /**< Directory with package hooks */
std::string package_name; /**< Name of the package to build */
bool force; /**< Flag to force package creation even if warnings occur */
@@ -35,7 +34,6 @@ struct BuildOptions {
BuildOptions() :
output_dir("."),
contents_dir(""),
metadata_dir(""),
hooks_dir(""),
package_name(""),
force(false),

View File

@@ -5,15 +5,15 @@
#include <filesystem>
/**
* @brief Handler for the create command
* @brief Handler for the stage command
*
* Processes arguments and creates a DPM package.
* Processes arguments and stages a DPM package.
*
* @param argc Number of arguments
* @param argv Array of arguments
* @return 0 on success, non-zero on failure
*/
int cmd_create(int argc, char** argv);
int cmd_stage(int argc, char** argv);
/**
* @brief Handler for the help command
@@ -36,4 +36,4 @@ int cmd_help(int argc, char** argv);
* @param argv Array of arguments
* @return 1 to indicate failure
*/
int cmd_unknown(const char* command, int argc, char** argv);
int cmd_unknown(const char* command, int argc, char** argv);