zinkee 0.1.65 → 0.1.66
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/index.js
CHANGED
|
@@ -253,7 +253,7 @@ ${list}`
|
|
|
253
253
|
};
|
|
254
254
|
}
|
|
255
255
|
async function showExamples(commandName, json, stdout, filters = {}) {
|
|
256
|
-
const { getCommandExamples } = await import("./examples-
|
|
256
|
+
const { getCommandExamples } = await import("./examples-C7OUOX34.js");
|
|
257
257
|
const examples = getCommandExamples(commandName, filters);
|
|
258
258
|
if (examples.length === 0) {
|
|
259
259
|
throw new CliError("invalid_cli_usage", `No examples registered for "${commandName}".`);
|
|
@@ -4414,6 +4414,41 @@ function registerLogsCommands(program, options = {}) {
|
|
|
4414
4414
|
});
|
|
4415
4415
|
}
|
|
4416
4416
|
|
|
4417
|
+
// src/api/members.ts
|
|
4418
|
+
var MembersApi = class {
|
|
4419
|
+
constructor(client) {
|
|
4420
|
+
this.client = client;
|
|
4421
|
+
}
|
|
4422
|
+
listMembers() {
|
|
4423
|
+
return this.client.getJson("/api/v2/members");
|
|
4424
|
+
}
|
|
4425
|
+
};
|
|
4426
|
+
|
|
4427
|
+
// src/commands/members.ts
|
|
4428
|
+
function createMembersApi(command, filePath) {
|
|
4429
|
+
const { client, ...runtime } = createCommandContext(command, filePath);
|
|
4430
|
+
return {
|
|
4431
|
+
api: new MembersApi(client),
|
|
4432
|
+
...runtime
|
|
4433
|
+
};
|
|
4434
|
+
}
|
|
4435
|
+
function registerMembersCommands(program, options = {}) {
|
|
4436
|
+
const filePath = options.configPath ?? defaultConfigPath;
|
|
4437
|
+
const stdout = options.stdout ?? process.stdout;
|
|
4438
|
+
const members = program.command("members").description("Inspect workspace members");
|
|
4439
|
+
members.command("list").description(
|
|
4440
|
+
"List the active members of the workspace (email to write in member fields, alias, currentUser)"
|
|
4441
|
+
).action(async function action() {
|
|
4442
|
+
const { api, json } = createMembersApi(this, filePath);
|
|
4443
|
+
const data = await api.listMembers();
|
|
4444
|
+
if (json) {
|
|
4445
|
+
emitJson(stdout, "members list", data);
|
|
4446
|
+
return;
|
|
4447
|
+
}
|
|
4448
|
+
emitTable(stdout, data);
|
|
4449
|
+
});
|
|
4450
|
+
}
|
|
4451
|
+
|
|
4417
4452
|
// src/commands/navigation.ts
|
|
4418
4453
|
import { readFileSync as readFileSync4 } from "fs";
|
|
4419
4454
|
|
|
@@ -6520,6 +6555,7 @@ function buildProgram(options = {}) {
|
|
|
6520
6555
|
registerRecordsCommands(program, options);
|
|
6521
6556
|
registerCommentsCommands(program, options);
|
|
6522
6557
|
registerLogsCommands(program, options);
|
|
6558
|
+
registerMembersCommands(program, options);
|
|
6523
6559
|
registerTeamspaceCommands(program, options);
|
|
6524
6560
|
return program;
|
|
6525
6561
|
}
|