import { loadToken, createInternalClientContext, widget_registry_exports } from './chunk-3YWCQTFR.js';
import './chunk-SGKKZASK.js';
import './chunk-Y45LX2LV.js';
import { init_esm_shims } from './chunk-LC652GLE.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-CDCW5FKN.js.map
//# sourceMappingURL=versionInfoCommand-CDCW5FKN.js.map