MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / parse_auto_answer

Function parse_auto_answer

src/cli/cli.c:6656–6665  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6654}
6655
6656static void parse_auto_answer(int argc, char **argv) {
6657 for (int i = 0; i < argc; i++) {
6658 if (strcmp(argv[i], "-y") == 0 || strcmp(argv[i], "--yes") == 0) {
6659 g_auto_answer = AUTO_YES;
6660 }
6661 if (strcmp(argv[i], "-n") == 0 || strcmp(argv[i], "--no") == 0) {
6662 g_auto_answer = AUTO_NO;
6663 }
6664 }
6665}
6666
6667static bool prompt_yn(const char *question) {
6668 if (g_auto_answer == AUTO_YES) {

Callers 3

cbm_cmd_installFunction · 0.85
cbm_cmd_uninstallFunction · 0.85
cbm_cmd_updateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected