import { captureEvent } from "../../../common/analytics/lib.js";
import { authenticate } from "../../../common/middleware/authentication.js";
import { identify } from "../../../common/middleware/user-identification.js";
import setBlocking from "../../../common/output.js";
import { describe, } from "../../../tunnel/services/describe/handler.js";
export default {
    desc: "Describes the services for this tunnel",
    command: "describe",
    builder: (yargs) => {
        return yargs
            .option("tunnel-id", {
            type: "string",
            describe: "The ID of the tunnel containing the services",
        })
            .option("api-key", {
            type: "string",
            describe: "The API Key from Zuplo",
            envVar: "API_KEY",
        })
            .demandOption(["tunnel-id"])
            .demandOption("api-key", "You must provide an API key with --api-key")
            .middleware([setBlocking, authenticate, identify]);
    },
    handler: async (argv) => {
        await captureEvent({ argv, event: "zuplo tunnel services describe" });
        await describe(argv);
    },
};
//# sourceMappingURL=describe.js.map