"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PingCommand = void 0;
const command_js_1 = require("./command.js");
/**
 * @see https://redis.io/commands/ping
 */
class PingCommand extends command_js_1.Command {
    constructor(cmd, opts) {
        const command = ["ping"];
        if (typeof cmd !== "undefined" && typeof cmd[0] !== "undefined") {
            command.push(cmd[0]);
        }
        super(command, opts);
    }
}
exports.PingCommand = PingCommand;
