MCPcopy Create free account
hub / github.com/F-Stack/f-stack / noninteractive

Function noninteractive

app/redis-6.2.6/src/redis-cli.c:2291–2307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2289}
2290
2291static int noninteractive(int argc, char **argv) {
2292 int retval = 0;
2293 sds *sds_args = getSdsArrayFromArgv(argc, argv, config.quoted_input);
2294 if (!sds_args) {
2295 printf("Invalid quoted string\n");
2296 return 1;
2297 }
2298 if (config.stdinarg) {
2299 sds_args = sds_realloc(sds_args, (argc + 1) * sizeof(sds));
2300 sds_args[argc] = readArgFromStdin();
2301 argc++;
2302 }
2303
2304 retval = issueCommand(argc, sds_args);
2305 sdsfreesplitres(sds_args, argc);
2306 return retval;
2307}
2308
2309/*------------------------------------------------------------------------------
2310 * Eval mode

Callers 1

mainFunction · 0.85

Calls 6

getSdsArrayFromArgvFunction · 0.85
sds_reallocFunction · 0.85
readArgFromStdinFunction · 0.85
issueCommandFunction · 0.85
sdsfreesplitresFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected