@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-C4xeSqSm.js";
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-C4xeSqSm.js";
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 canPromptWorkspace = !opts.workspaceId && isInteractiveHumanSession({
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: opts.workspaceId ? Number(opts.workspaceId) : void 0,
25934
- profileName: opts.profile,
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-C4xeSqSm.js.map
26116
+ //# sourceMappingURL=program-DdzpW3vh.js.map
package/build/program.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as createProgram } from "./program-C4xeSqSm.js";
1
+ import { t as createProgram } from "./program-DdzpW3vh.js";
2
2
  export { createProgram };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@togglhq/cli",
3
- "version": "1.5.70",
3
+ "version": "1.5.71",
4
4
  "description": "Toggl CLI for Toggl 2.0 API operations.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",