// Route: GET /cli/commands (real molo command reference) #include "support/Assert.hpp" using namespace molo::example::test; using molo::example::fw::Method; int main() { Fixture f; auto res = f.client->get("/cli/commands"); check(res.status == 200 && contains(res.headers.get("Content-Type"), "text/html"), "html page"); for (const char* c : {"new", "serve", "build", "embed", "migrate", "health", "supervisor", "task", "ai", "expose", "verify", "supply-check", "release", "rollout", "rollback", "experiment", "debug"}) check(contains(res.body, std::string("molo ") + c + ""), std::string("lists ") + c); auto js = f.client->request(Method::Get, "/cli/commands", "", {{"Accept", "application/json"}}); check(contains(js.body, "\"commands\""), "json for json clients"); check(f.services.features.size() > 0, "side effect: feature rows registered"); check(f.client->request(Method::Post, "/cli/commands").status == 405, "post is 405"); return finish("clicmd/commands"); }