| 926 | } |
| 927 | |
| 928 | void HandleNSClientConfSet(const std::vector<std::string>& parts, |
| 929 | ::fedb::client::NsClient* client) { |
| 930 | if (parts.size() < 3) { |
| 931 | std::cout << "Bad format" << std::endl; |
| 932 | return; |
| 933 | } |
| 934 | std::string msg; |
| 935 | bool ret = client->ConfSet(parts[1], parts[2], msg); |
| 936 | if (!ret) { |
| 937 | printf("failed to set %s. error msg: %s\n", parts[1].c_str(), |
| 938 | msg.c_str()); |
| 939 | return; |
| 940 | } |
| 941 | printf("set %s ok\n", parts[1].c_str()); |
| 942 | } |
| 943 | |
| 944 | void HandleNSClientConfGet(const std::vector<std::string>& parts, |
| 945 | ::fedb::client::NsClient* client) { |
no test coverage detected