@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.
- package/dist/bin/fluid.mjs +9 -3
- package/dist/bin/fluid.mjs.map +1 -1
- package/dist/{token-DgwRaKgP.mjs → hook-CZoMQwJE.mjs} +257 -8
- package/dist/hook-CZoMQwJE.mjs.map +1 -0
- package/dist/index.d.mts +86 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +90 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/token-DgwRaKgP.mjs.map +0 -1
package/dist/bin/fluid.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { A as
|
|
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
|
-
|
|
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
|
|