import { loadToken, createInternalClientContext, widget_registry_exports } from './chunk-YORAHPP6.js';
import './chunk-PXU2ECCD.js';
import './chunk-SAOPV5FF.js';
import { init_esm_shims } from './chunk-DMUWBIYY.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.getWidgetSetRelease(clientCtx, widgetSet, version);
  consola.success(`Loaded version info for ${version}`);
  consola.log(JSON.stringify(response, null, 2));
}

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