| 401 | {} |
| 402 | |
| 403 | seastar::future<tell_result_t> call(const cmdmap_t&, |
| 404 | std::string_view format, |
| 405 | ceph::bufferlist&&) const final |
| 406 | { |
| 407 | LOG_PREFIX(AdminSocket::HelpHook); |
| 408 | INFO(""); |
| 409 | unique_ptr<Formatter> f{Formatter::create(format, |
| 410 | "json-pretty", "json-pretty")}; |
| 411 | f->open_object_section("help"); |
| 412 | for (const auto& [prefix, hook] : m_as) { |
| 413 | if (!hook->help.empty()) { |
| 414 | f->dump_string(prefix.data(), hook->help); |
| 415 | } |
| 416 | } |
| 417 | f->close_section(); |
| 418 | return seastar::make_ready_future<tell_result_t>(std::move(f)); |
| 419 | } |
| 420 | }; |
| 421 | |
| 422 | class GetdescsHook final : public AdminSocketHook { |
no test coverage detected