Lines Matching defs:command
61 #include "cli-command.h"
63 struct command {
143 static const struct command commands[] = {
231 const struct command*command;
240 for (command = commands; command->name; command++)
241 if (command->help)
242 pa_strbuf_printf(buf, " %-25s %s\n", command->name, command->help);
2062 pa_strbuf_printf(buf, "Meta command %s is not valid in this context\n", cs);
2071 pa_strbuf_printf(buf, "Meta command %s is not valid in this context\n", cs);
2176 pa_strbuf_printf(buf, "Meta command %s is not valid in this context\n", cs);
2186 pa_strbuf_printf(buf, "Invalid meta command: %s\n", cs);
2191 const struct command*command;
2200 for (command = commands; command->name; command++)
2201 if (strlen(command->name) == l && !strncmp(cs, command->name, l)) {
2203 pa_tokenizer *t = pa_tokenizer_new(cs, command->args);
2205 ret = command->proc(c, t, buf, fail);
2216 pa_strbuf_printf(buf, "Unknown command: %s\n", cs);