@fluid-app/fluid-cli 0.1.349 → 0.1.350

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { A as sendMfa, C as isIdentityProfile, D as fetchUserCompanies, E as confirmMfa, J as rootCommand, M as switchCompany, N as validateToken, O as getFluidApiBase, X as visibleSubcommands, Y as visibleOptions, Z as walkCommands, _ as sessionFacts, a as resolveCredentialSource, b as resolveIdentityUrl, c as updateConfig, d as getConfigDir, h as primeIdentityProfile, j as signup, k as redeemIdentityLink, l as writeConfig, m as identityToken, n as getAuthToken, p as describeIdentityError, q as filterCatalog, s as readConfig, t as getActiveProfile, u as isStrictConfig, v as signInWithBrowser, w as FLUID_API_ERROR, y as signOutIdentity } from "../token-DgwRaKgP.mjs";
2
+ import { A as signInWithBrowser, B as getFluidApiBase, C as getConfigDir, D as primeIdentityProfile, E as identityToken, F as isIdentityProfile, G as validateToken, H as sendMfa, I as FLUID_API_ERROR, M as resolveIdentityUrl, R as confirmMfa, S as isStrictConfig, T as describeIdentityError, U as signup, V as redeemIdentityLink, W as switchCompany, _ as resolveCredentialSource, at as filterCatalog, b as updateConfig, c as inputsModeActive, ct as visibleSubcommands, j as signOutIdentity, k as sessionFacts, l as registerInputsHook, lt as walkCommands, m as getAuthToken, ot as rootCommand, p as getActiveProfile, s as exitOnInputsError, st as visibleOptions, x as writeConfig, y as readConfig, z as fetchUserCompanies } from "../hook-CZoMQwJE.mjs";
3
3
  import { createRequire } from "node:module";
4
4
  import { existsSync, mkdirSync, readFileSync, readdirSync, realpathSync, renameSync, rmSync, unlinkSync, writeFileSync } from "node:fs";
5
5
  import { fileURLToPath, pathToFileURL } from "node:url";
@@ -2010,13 +2010,14 @@ const selfAuthenticating = new Set([
2010
2010
  completionCommand,
2011
2011
  completeCommand
2012
2012
  ].map((command) => command.name()));
2013
+ registerInputsHook(program);
2013
2014
  program.hook("preAction", async (_program, actionCommand) => {
2014
2015
  let topLevel = actionCommand;
2015
2016
  while (topLevel.parent && topLevel.parent !== program) topLevel = topLevel.parent;
2016
2017
  if (selfAuthenticating.has(topLevel.name())) return;
2017
2018
  await primeCommandCredential(actionCommand.opts());
2018
2019
  });
2019
- startUpdateCheck({
2020
+ if (!inputsModeActive(process.env)) startUpdateCheck({
2020
2021
  currentVersion: version,
2021
2022
  configDir: getConfigDir(),
2022
2023
  env: process.env,
@@ -2026,7 +2027,12 @@ startUpdateCheck({
2026
2027
  versions: process.versions
2027
2028
  });
2028
2029
  await loadPlugins(program, packageRoot);
2029
- await program.parseAsync(process.argv, { from: "node" });
2030
+ try {
2031
+ await program.parseAsync(process.argv, { from: "node" });
2032
+ } catch (error) {
2033
+ exitOnInputsError(error);
2034
+ throw error;
2035
+ }
2030
2036
  //#endregion
2031
2037
  export {};
2032
2038