@myna-sh/cli 0.10.0 → 0.11.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.
- package/dist/main.js +12 -2
- package/dist/main.js.map +1 -1
- package/package.json +4 -4
package/dist/main.js
CHANGED
|
@@ -2242,7 +2242,17 @@ function registerEntries(program) {
|
|
|
2242
2242
|
const project = ctx.requireProject();
|
|
2243
2243
|
const id = await resolveEntryId(ctx.management(), project, args[0]);
|
|
2244
2244
|
const entry = await ctx.management().entries.get(project, id);
|
|
2245
|
-
emit(entry)
|
|
2245
|
+
emit(entry, () => {
|
|
2246
|
+
process.stdout.write(JSON.stringify(entry, null, 2) + "\n");
|
|
2247
|
+
for (const cs of entry.openChangeSets ?? []) {
|
|
2248
|
+
const who = cs.actor?.displayName ?? "someone";
|
|
2249
|
+
const what = cs.fields.length ? cs.fields.join(", ") : cs.operation;
|
|
2250
|
+
diag(` open change set ${cs.id} \u2014 ${cs.title} (${who}): ${what}`);
|
|
2251
|
+
}
|
|
2252
|
+
if (entry.contendedFields?.length) {
|
|
2253
|
+
diag(` contended by more than one: ${entry.contendedFields.join(", ")}`);
|
|
2254
|
+
}
|
|
2255
|
+
});
|
|
2246
2256
|
})
|
|
2247
2257
|
);
|
|
2248
2258
|
entries.command("create").description("Create an entry").argument("<collection>", "collection key").option("--data <json-or-@file>", "entry data as JSON or @file").option("--set <path=value...>", "set individual fields", collect, []).option("--slug <slug>", "explicit slug").option("--change-set <id>", "attach to a change set").option("--summary <text>", "change summary").action(
|
|
@@ -3728,7 +3738,7 @@ function installCommand(manager, version) {
|
|
|
3728
3738
|
}
|
|
3729
3739
|
|
|
3730
3740
|
// src/version.ts
|
|
3731
|
-
var VERSION = true ? "0.
|
|
3741
|
+
var VERSION = true ? "0.11.0" : "0.0.0-dev";
|
|
3732
3742
|
var IS_RELEASE_BUILD = true;
|
|
3733
3743
|
|
|
3734
3744
|
// src/commands/doctor.ts
|