// @bun
import {
  AdkError
} from "./chunk-7krp2mgz.js";

// src/utils/format-validation.ts
var JSON_ONLY_FORMAT_ERROR = 'The --format option only accepts "json" for this command.';
function ensureJsonOnlyFormat(format) {
  if (format !== undefined && format !== "json") {
    throw new AdkError({ code: "INVALID_FORMAT", message: JSON_ONLY_FORMAT_ERROR, expected: true });
  }
}

export { JSON_ONLY_FORMAT_ERROR, ensureJsonOnlyFormat };
