meta: add build system and stub tool source code

This commit is contained in:
2025-07-07 13:56:20 +01:00
parent 2bc7a0d900
commit ba40290eea
27 changed files with 990 additions and 0 deletions

42
ropam/remove.c Normal file
View File

@@ -0,0 +1,42 @@
#include "commands.h"
#include <blue/cmd.h>
enum {
ARG_PACKAGE,
};
static int remove(
const b_command *self,
const b_arglist *opt,
const b_array *args)
{
return 0;
}
B_COMMAND(CMD_REMOVE, CMD_ROOT)
{
B_COMMAND_NAME("remove");
B_COMMAND_SHORT_NAME('R');
B_COMMAND_DESC(
"remove a set of Rosetta packages by name. any "
"automatically installed dependencies will not be removed "
"unless they are explicitly named in the list of packages to "
"remove.");
B_COMMAND_FLAGS(B_COMMAND_SHOW_HELP_BY_DEFAULT);
B_COMMAND_FUNCTION(remove);
B_COMMAND_HELP_OPTION();
B_COMMAND_ARG(ARG_PACKAGE)
{
B_ARG_NAME("package-name");
B_ARG_DESC("the names of the packages to remove.");
B_ARG_NR_VALUES(B_ARG_1_OR_MORE_VALUES);
}
B_COMMAND_USAGE()
{
B_COMMAND_USAGE_ARG(ARG_PACKAGE);
}
}