'use strict';

var yaml = require('yaml');
var config = require('./config-42c55c02.cjs.js');
var configLoader = require('@backstage/config-loader');
require('@backstage/config');
require('./index-09611511.cjs.js');
require('commander');
require('chalk');
require('fs-extra');
require('semver');
require('@backstage/cli-common');
require('@backstage/errors');
require('@manypkg/get-packages');
require('./PackageGraph-5fbc300a.cjs.js');
require('path');
require('child_process');
require('util');

var schema = async (opts) => {
  const { schema } = await config.loadCliConfig({
    args: [],
    fromPackage: opts.package,
    mockEnv: true
  });
  const merged = configLoader.mergeConfigSchemas(schema.serialize().schemas.map((_) => _.value));
  merged.title = "Application Configuration Schema";
  merged.description = "This is the schema describing the structure of the app-config.yaml configuration file.";
  if (opts.format === "json") {
    process.stdout.write(`${JSON.stringify(merged, null, 2)}
`);
  } else {
    process.stdout.write(`${yaml.stringify(merged)}
`);
  }
};

exports["default"] = schema;
//# sourceMappingURL=schema-a3cb178a.cjs.js.map
