mainflow 0.14.0 → 0.15.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/cli.js +2 -1
- package/dist/facts.d.ts +1 -1
- package/dist/facts.js +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -240,7 +240,8 @@ const RUNS = {
|
|
|
240
240
|
return done(`logged ${entry.at} ${entry.operation}`);
|
|
241
241
|
},
|
|
242
242
|
"ops list": ({ root, opts }) => {
|
|
243
|
-
const
|
|
243
|
+
const covers = (ref) => !opts.ref || ref !== void 0 && (ref === opts.ref || ref.startsWith(`${opts.ref}/`) || ref.startsWith(`${opts.ref}#`));
|
|
244
|
+
const shown = loadHub(root).ops.filter((o) => (!opts.month || o.at.startsWith(opts.month)) && covers(o.ref));
|
|
244
245
|
for (const o of shown) console.log(` ${o.at} ${o.target} ${o.operation} ${o.result}${o.ref ? ` ${o.ref}` : ""}`);
|
|
245
246
|
return done(`${shown.length} operations`);
|
|
246
247
|
},
|
package/dist/facts.d.ts
CHANGED
|
@@ -299,7 +299,7 @@ export declare const COMMAND_SPECS: {
|
|
|
299
299
|
};
|
|
300
300
|
readonly 'ops list': {
|
|
301
301
|
readonly usage: 'ops list [--month YYYY-MM] [--ref <ref>]';
|
|
302
|
-
readonly summary: 'List logged external operations, optionally filtered by month or by the
|
|
302
|
+
readonly summary: 'List logged external operations, optionally filtered by month or by a ref, which also matches the refs beneath it (m001 matches m001/t002 and m001/t002#c001)';
|
|
303
303
|
readonly args: 0;
|
|
304
304
|
readonly needsHub: true;
|
|
305
305
|
};
|
package/dist/facts.js
CHANGED
|
@@ -275,7 +275,7 @@ const COMMAND_SPECS = {
|
|
|
275
275
|
},
|
|
276
276
|
"ops list": {
|
|
277
277
|
usage: "ops list [--month YYYY-MM] [--ref <ref>]",
|
|
278
|
-
summary: "List logged external operations, optionally filtered by month or by the
|
|
278
|
+
summary: "List logged external operations, optionally filtered by month or by a ref, which also matches the refs beneath it (m001 matches m001/t002 and m001/t002#c001)",
|
|
279
279
|
args: 0,
|
|
280
280
|
needsHub: true
|
|
281
281
|
},
|