@thatopen/services 0.3.13 → 0.3.14
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/cli.js +16 -0
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -11799,6 +11799,22 @@ revitCommand.command("sync").description("Synchronize your local with the team (
|
|
|
11799
11799
|
const r = await callAddin("sync");
|
|
11800
11800
|
console.log(`Synced. v${r.verB} → v${r.verA}.`);
|
|
11801
11801
|
});
|
|
11802
|
+
revitCommand.command("worksets").description("List the model worksets and who owns each").action(async () => {
|
|
11803
|
+
await connect();
|
|
11804
|
+
const r = await callAddin("worksets");
|
|
11805
|
+
console.log(JSON.stringify(r.worksets, null, 2));
|
|
11806
|
+
});
|
|
11807
|
+
revitCommand.command("take").description("Take ownership of a workset (only one person at a time — the team lock arbitrates)").requiredOption("--workset <name>", "The workset name to take").action(async (opts) => {
|
|
11808
|
+
await connect();
|
|
11809
|
+
const r = await callAddin("take", { workset: opts.workset });
|
|
11810
|
+
if (r.taken) console.log(`✓ Took workset "${r.workset}" (${r.result}). You can now edit its elements.`);
|
|
11811
|
+
else console.log(`✗ Could NOT take "${r.workset}" — it is held by "${r.deniedBy}". Ask them to release it (untake).`);
|
|
11812
|
+
});
|
|
11813
|
+
revitCommand.command("untake").description("Release a workset you own so teammates can take it").requiredOption("--workset <name>", "The workset name to release").action(async (opts) => {
|
|
11814
|
+
await connect();
|
|
11815
|
+
const r = await callAddin("untake", { workset: opts.workset });
|
|
11816
|
+
console.log(`Released workset "${r.released}".`);
|
|
11817
|
+
});
|
|
11802
11818
|
const pkg = JSON.parse(
|
|
11803
11819
|
require$$3.readFileSync(require$$2.join(__dirname, "..", "package.json"), "utf-8")
|
|
11804
11820
|
);
|