MCPcopy Create free account
hub / github.com/baidu/tera / Confirm

Function Confirm

src/admincli.cc:369–380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

367}
368
369bool Confirm() {
370 std::cout << "[Y/N] ";
371 std::string ensure;
372 if (!std::getline(std::cin, ensure)) {
373 std::cout << "Get input error" << std::endl;
374 return false;
375 }
376 if (ensure != "Y") {
377 return false;
378 }
379 return true;
380}
381
382CliStatus GetMeta(const std::string& meta_server, common::ThreadPool* thread_pool,
383 const std::string& table_name, const std::string& start_key) {

Callers 2

DeleteMetaTabletFunction · 0.70
ModifyMetaValueFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected