@togglhq/cli 1.5.70 → 1.5.71
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/build/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { n as CommanderError, t as createProgram } from "./program-
|
|
2
|
+
import { n as CommanderError, t as createProgram } from "./program-DdzpW3vh.js";
|
|
3
3
|
//#region src/cli.ts
|
|
4
4
|
try {
|
|
5
5
|
await createProgram({ enableUpdateNotification: true }).parseAsync(process.argv);
|
package/build/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createProgram } from "./program-
|
|
1
|
+
import { t as createProgram } from "./program-DdzpW3vh.js";
|
|
2
2
|
export { createProgram };
|
|
@@ -25924,14 +25924,16 @@ function createProgram(programOptions = {}) {
|
|
|
25924
25924
|
try {
|
|
25925
25925
|
const urls = programOptions.resolveAuthUrls?.(opts) ?? resolveEnvironmentUrls();
|
|
25926
25926
|
const globalOpts = program.opts();
|
|
25927
|
-
const
|
|
25927
|
+
const workspaceId = opts.workspaceId ?? globalOpts.workspaceId;
|
|
25928
|
+
const profile = opts.profile ?? globalOpts.profile;
|
|
25929
|
+
const canPromptWorkspace = !workspaceId && isInteractiveHumanSession({
|
|
25928
25930
|
isTty,
|
|
25929
25931
|
env,
|
|
25930
25932
|
json: globalOpts.json
|
|
25931
25933
|
});
|
|
25932
25934
|
await runCliAuthFlow({
|
|
25933
|
-
workspaceId:
|
|
25934
|
-
profileName:
|
|
25935
|
+
workspaceId: workspaceId ? parseWorkspaceIdArg(workspaceId) : void 0,
|
|
25936
|
+
profileName: profile,
|
|
25935
25937
|
focusApiUrl: urls.focusApiUrl,
|
|
25936
25938
|
accountsApiUrl: urls.accountsApiUrl,
|
|
25937
25939
|
deriveProfileName: programOptions.deriveProfileName,
|
|
@@ -26111,4 +26113,4 @@ Common commands:
|
|
|
26111
26113
|
//#endregion
|
|
26112
26114
|
export { CommanderError as n, createProgram as t };
|
|
26113
26115
|
|
|
26114
|
-
//# sourceMappingURL=program-
|
|
26116
|
+
//# sourceMappingURL=program-DdzpW3vh.js.map
|
package/build/program.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createProgram } from "./program-
|
|
1
|
+
import { t as createProgram } from "./program-DdzpW3vh.js";
|
|
2
2
|
export { createProgram };
|