import { loadToken, createInternalClientContext, widget_registry_exports } from './chunk-NFXHUITK.js';
import './chunk-GQTSTRG7.js';
import './chunk-YFS5KLHD.js';
import { init_esm_shims } from './chunk-MU732G7I.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-SU5UNCYH.js.map
//# sourceMappingURL=versionInfoCommand-SU5UNCYH.js.map