43 lines
829 B
C
43 lines
829 B
C
#include "commands.h"
|
|
|
|
#include <fx/cmdline/cmd.h>
|
|
|
|
enum {
|
|
ARG_PACKAGE,
|
|
};
|
|
|
|
static int remove(
|
|
const fx_command *self,
|
|
const fx_arglist *opt,
|
|
const fx_array *args)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
FX_COMMAND(CMD_REMOVE, CMD_ROOT)
|
|
{
|
|
FX_COMMAND_NAME("remove");
|
|
FX_COMMAND_SHORT_NAME('R');
|
|
FX_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.");
|
|
FX_COMMAND_FLAGS(FX_COMMAND_SHOW_HELP_BY_DEFAULT);
|
|
FX_COMMAND_FUNCTION(remove);
|
|
|
|
FX_COMMAND_HELP_OPTION();
|
|
|
|
FX_COMMAND_ARG(ARG_PACKAGE)
|
|
{
|
|
FX_ARG_NAME("package-name");
|
|
FX_ARG_DESC("the names of the packages to remove.");
|
|
FX_ARG_NR_VALUES(FX_ARG_1_OR_MORE_VALUES);
|
|
}
|
|
|
|
FX_COMMAND_USAGE()
|
|
{
|
|
FX_COMMAND_USAGE_ARG(ARG_PACKAGE);
|
|
}
|
|
}
|