MCPcopy Create free account
hub / github.com/apache/incubator-pegasus / execute_command

Function execute_command

src/shell/main.cpp:598–604  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

596}
597
598void execute_command(command_executor *e, int argc, sds *str_args)
599{
600 if (!e->exec(e, &s_global_context, {argc, str_args})) {
601 printf("USAGE: ");
602 print_help(e, s_max_name_length, s_option_width);
603 }
604}
605
606/* Linenoise completion callback. */
607static void completionCallback(const char *buf, linenoiseCompletions *lc)

Callers 1

runFunction · 0.85

Calls 2

print_helpFunction · 0.85
execMethod · 0.45

Tested by

no test coverage detected