| 16 | #include "cmdline_private.h" |
| 17 | |
| 18 | static void |
| 19 | cmdline_valid_buffer(struct rdline *rdl, const char *buf, |
| 20 | __rte_unused unsigned int size) |
| 21 | { |
| 22 | struct cmdline *cl = rdl->opaque; |
| 23 | int ret; |
| 24 | ret = cmdline_parse(cl, buf); |
| 25 | if (ret == CMDLINE_PARSE_AMBIGUOUS) |
| 26 | cmdline_printf(cl, "Ambiguous command\n"); |
| 27 | else if (ret == CMDLINE_PARSE_NOMATCH) |
| 28 | cmdline_printf(cl, "Command not found\n"); |
| 29 | else if (ret == CMDLINE_PARSE_BAD_ARGS) |
| 30 | cmdline_printf(cl, "Bad arguments\n"); |
| 31 | } |
| 32 | |
| 33 | static int |
| 34 | cmdline_complete_buffer(struct rdline *rdl, const char *buf, |
nothing calls this directly
no test coverage detected