// SPDX-License-Identifier: LGPL-3.0-only // SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts® // crafter-debug: Cli::Run with the real transport. import std; import Crafter.Debug.Core; import Crafter.Debug.Cli; using namespace Crafter::Debug; namespace { // Until the QUIC transport lands: every call reports it unreachable. class Unbuilt : public Cli::Connection { public: std::expected Call(const Value&, std::chrono::milliseconds, const std::function&) override { return std::unexpected(Cli::CallError{ Cli::CallError::Kind::Unreachable, "this client was built without its transport" }); } }; } int main(int argc, char** argv) { const std::vector args(argv + 1, argv + argc); Cli::Environment environment; environment.connect = [](const InstanceRecord&) -> std::unique_ptr { return std::make_unique(); }; environment.haveLldb = [] { return std::filesystem::exists("/app/bin/lldb") || std::filesystem::exists("/usr/bin/lldb"); }; return Cli::Run(args, environment); }