import { loadToken, createInternalClientContext, widget_registry_exports } from './chunk-WYC3GIR7.js';
import './chunk-PBYE7BDH.js';
import './chunk-N67QHFFS.js';
import { init_esm_shims } from './chunk-H26U4HNL.js';
import { consola } from 'consola';

// src/commands/widgetset/version/info/versionInfoCommand.mts
init_esm_shims();
async function versionInfoCommand({
  version,
  foundryUrl,
  widgetSet,
  token,
  tokenFile
}) {
  const loadedToken = await loadToken(token, tokenFile);
  const tokenProvider = () => loadedToken;
  const clientCtx = createInternalClientContext(foundryUrl, tokenProvider);
  consola.start("Loading version info");
  const response = await widget_registry_exports.getRelease(clientCtx, widgetSet, version);
  consola.success(`Loaded version info for ${version}`);
  consola.log(JSON.stringify(response, null, 2));
}

export { versionInfoCommand as default };
//# sourceMappingURL=versionInfoCommand-6NTHF5YJ.js.map
//# sourceMappingURL=versionInfoCommand-6NTHF5YJ.js.map