const char *desc;
};
+static struct uid_range *admissible_uids;
+
#define INTERACTIVE_COMMANDS \
INTERACTIVE_COMMAND(dump, "dump the current configuration") \
INTERACTIVE_COMMAND(set, "change the current configuration") \
INTERACTIVE_COMMAND(reset, "reset configuration to defaults") \
INTERACTIVE_COMMAND(help, "show list of commands and one-line descriptions") \
+ INTERACTIVE_COMMAND(run, "start the query according to the current options")
#define INTERACTIVE_COMMAND(name, desc) \
return fgets(line, size, stdin)? 1 : -1;
}
+static int icom_run(__a_unused char *line)
+{
+ return run_select_query(admissible_uids);
+}
+
static int icom_help(__a_unused char *line)
{
struct interactive_command *c;
return 1;
}
-static struct uid_range *admissible_uids;
-
static int icom_set(char *line)
{
struct select_cmdline_parser_params params = {
char line[255];
int ret = 1;
+ select_cmdline_parser_init(&select_conf);
while (read_input_line(line, sizeof(line)) >= 0) {
size_t len = strlen(line);
if (!len)