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

Function main

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

Source from the content-addressed store, hash-verified

8265 *--------------------------------------------------------------------------- */
8266
8267int main(int argc, char **argv) {
8268 int firstarg;
8269 struct timeval tv;
8270
8271 memset(&config.sslconfig, 0, sizeof(config.sslconfig));
8272 config.hostip = sdsnew("127.0.0.1");
8273 config.hostport = 6379;
8274 config.hostsocket = NULL;
8275 config.repeat = 1;
8276 config.interval = 0;
8277 config.dbnum = 0;
8278 config.input_dbnum = 0;
8279 config.interactive = 0;
8280 config.shutdown = 0;
8281 config.monitor_mode = 0;
8282 config.pubsub_mode = 0;
8283 config.latency_mode = 0;
8284 config.latency_dist_mode = 0;
8285 config.latency_history = 0;
8286 config.lru_test_mode = 0;
8287 config.lru_test_sample_size = 0;
8288 config.cluster_mode = 0;
8289 config.cluster_send_asking = 0;
8290 config.slave_mode = 0;
8291 config.getrdb_mode = 0;
8292 config.stat_mode = 0;
8293 config.scan_mode = 0;
8294 config.intrinsic_latency_mode = 0;
8295 config.pattern = NULL;
8296 config.rdb_filename = NULL;
8297 config.pipe_mode = 0;
8298 config.pipe_timeout = REDIS_CLI_DEFAULT_PIPE_TIMEOUT;
8299 config.bigkeys = 0;
8300 config.hotkeys = 0;
8301 config.stdinarg = 0;
8302 config.auth = NULL;
8303 config.askpass = 0;
8304 config.user = NULL;
8305 config.eval = NULL;
8306 config.eval_ldb = 0;
8307 config.eval_ldb_end = 0;
8308 config.eval_ldb_sync = 0;
8309 config.enable_ldb_on_eval = 0;
8310 config.last_cmd_type = -1;
8311 config.verbose = 0;
8312 config.set_errcode = 0;
8313 config.no_auth_warning = 0;
8314 config.in_multi = 0;
8315 config.cluster_manager_command.name = NULL;
8316 config.cluster_manager_command.argc = 0;
8317 config.cluster_manager_command.argv = NULL;
8318 config.cluster_manager_command.flags = 0;
8319 config.cluster_manager_command.replicas = 0;
8320 config.cluster_manager_command.from = NULL;
8321 config.cluster_manager_command.to = NULL;
8322 config.cluster_manager_command.from_user = NULL;
8323 config.cluster_manager_command.from_pass = NULL;
8324 config.cluster_manager_command.from_askpass = 0;

Callers

nothing calls this directly

Calls 15

memsetFunction · 0.85
sdsnewFunction · 0.85
parseEnvFunction · 0.85
askPasswordFunction · 0.85
cliSecureInitFunction · 0.85
init_genrand64Function · 0.85
clusterManagerModeFunction · 0.85
cliConnectFunction · 0.85
latencyModeFunction · 0.85
latencyDistModeFunction · 0.85
sendCapaFunction · 0.85

Tested by

no test coverage detected