@golden-frijoles/cli 0.3.0 → 0.4.0

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.
@@ -181,6 +181,7 @@ exports.whoamiCommand = {
181
181
  return (0, exit_codes_1.exitForServerCode)(result.code);
182
182
  }
183
183
  const { account, credential, projects } = result.body;
184
+ const workspaces = result.body.workspaces ?? [];
184
185
  context.emit.ok({
185
186
  account,
186
187
  // The credential's id and LABEL. Never the token — `gf doctor`'s rule applies here too, and
@@ -190,9 +191,12 @@ exports.whoamiCommand = {
190
191
  tokenSource: context.auth.source,
191
192
  activeProject: context.auth.activeProject,
192
193
  projects,
194
+ workspaces,
193
195
  }, [
194
196
  `${account.email ?? account.userId} on ${context.api.baseUrl}`,
195
197
  `credential: ${credential.label} (from ${describeSource(context.auth.source)})`,
198
+ // The tenant (workspaces S2.3): one line per workspace, so a person in two sees both.
199
+ ...workspaces.map((workspace) => `workspace: ${workspace.name}`),
196
200
  `active project: ${context.auth.activeProject ?? 'none — run `gf projects use <slug>`'}`,
197
201
  '',
198
202
  (0, output_1.table)(['PROJECT', 'ROLE'], projects.map((project) => [
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "0.3.0";
1
+ export declare const VERSION = "0.4.0";
package/dist/version.js CHANGED
@@ -10,4 +10,4 @@ exports.VERSION = void 0;
10
10
  //
11
11
  // It is a literal, and `version.test.ts` asserts it equals `package.json`'s — so the two cannot
12
12
  // drift, and the drift is caught by the unit gate rather than by someone reading `gf --version`.
13
- exports.VERSION = '0.3.0';
13
+ exports.VERSION = '0.4.0';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@golden-frijoles/cli",
3
3
  "private": false,
4
- "version": "0.3.0",
4
+ "version": "0.4.0",
5
5
  "description": "The Golden Frijoles CLI — create, roll out and kill feature flags from a terminal, or from an agent.",
6
6
  "bin": {
7
7
  "gf": "./dist/bin.js"