bivium 0.8.0 → 0.10.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.
@@ -0,0 +1,475 @@
1
+ import {
2
+ PLAIN2,
3
+ plural2
4
+ } from "./shared-a8ebfhzf.js";
5
+ import {
6
+ BiviumError2
7
+ } from "./shared-118ck8qt.js";
8
+ import {
9
+ globToRegExp
10
+ } from "./shared-px5a17nj.js";
11
+ import"./shared-my87dhfd.js";
12
+ import {
13
+ specifierLine,
14
+ gotoLine,
15
+ callLine,
16
+ textLine,
17
+ annotationLine,
18
+ lineText,
19
+ sourceOf,
20
+ fileOf,
21
+ causesOf,
22
+ fixFor2
23
+ } from "./shared-byhfswm9.js";
24
+ import"./shared-yfvpkeff.js";
25
+ import {
26
+ createResolver,
27
+ SCANNED,
28
+ formatOf,
29
+ extract,
30
+ finish,
31
+ gotoPage,
32
+ walksByTypes,
33
+ affectedBy,
34
+ sorted
35
+ } from "./shared-70w84x4c.js";
36
+
37
+ // src/why.ts
38
+ var CONFIG_EDGES = "edges in the config";
39
+ var CONFIG_SETUP = "setup in the config";
40
+ var CONFIGURED = {
41
+ edges: CONFIG_EDGES,
42
+ setup: CONFIG_SETUP
43
+ };
44
+ var CONFIG_READS = "reads in the config";
45
+ async function edgeAt(context, node, via) {
46
+ const spelled = CONFIGURED[via.kind];
47
+ if (spelled !== undefined)
48
+ return { at: spelled };
49
+ if (via.kind === "unknown")
50
+ return {};
51
+ const file = fileOf(node);
52
+ const source = SCANNED.test(file) ? await sourceOf(context.root, file) : undefined;
53
+ const configured = (maps) => maps.some((map) => map.targets(node)?.some((re) => re.test(via.from)));
54
+ if (via.kind === "reads" && configured(context.config.reads)) {
55
+ const declared = source !== undefined && extract(formatOf(file), source).reads.some((glob) => globToRegExp(glob).test(via.from));
56
+ if (!declared)
57
+ return { at: CONFIG_READS };
58
+ }
59
+ if (source === undefined)
60
+ return {};
61
+ const line = edgeLine(context, node, via, source);
62
+ return line === undefined ? {} : { at: `${file}:${line}`, text: lineText(source, line) };
63
+ }
64
+ function edgeLine({ config, resolve }, node, via, source) {
65
+ const file = fileOf(node);
66
+ const extraction = extract(formatOf(file), source);
67
+ const matches = (glob) => globToRegExp(glob).test(via.from);
68
+ if (via.kind === "reads" || via.kind === "depends-on" || via.kind === "lists") {
69
+ const tag = `@${via.kind}`;
70
+ const globs = {
71
+ reads: extraction.reads,
72
+ "depends-on": extraction.dependsOn,
73
+ lists: extraction.lists
74
+ }[via.kind];
75
+ const glob = globs.find(matches);
76
+ return (glob === undefined ? undefined : annotationLine(source, tag, glob)) ?? textLine(source, tag);
77
+ }
78
+ if (via.kind === "glob") {
79
+ const relative = finish(file, extraction).globs;
80
+ const glob = extraction.globs[relative.findIndex(matches)];
81
+ return (glob === undefined ? undefined : specifierLine(source, glob)) ?? callLine(source, "import.meta.glob");
82
+ }
83
+ const target = fileOf(via.from);
84
+ if (via.kind === "goto") {
85
+ const argument = extraction.gotos.find((candidate) => gotoPage(config, file, candidate)?.includes(target));
86
+ return gotoLine(source, argument, target);
87
+ }
88
+ const loads = (specifier) => {
89
+ const resolved = resolve(file, specifier);
90
+ return resolved !== undefined && "files" in resolved && resolved.files.includes(target);
91
+ };
92
+ if (via.kind === "export") {
93
+ const barrel = extraction.barrel;
94
+ if (!barrel)
95
+ return;
96
+ const own = barrel.names.get(node.slice(node.indexOf("#") + 1));
97
+ const specifier = [
98
+ ...own === undefined ? [] : [own],
99
+ ...barrel.names.values(),
100
+ ...barrel.stars
101
+ ].find(loads);
102
+ return specifier === undefined ? undefined : specifierLine(source, specifier);
103
+ }
104
+ const imported = extraction.imports.find(({ specifier }) => loads(specifier));
105
+ return imported === undefined ? undefined : specifierLine(source, imported.specifier);
106
+ }
107
+ function rootCause(computed, rootNode, from) {
108
+ if (from !== undefined)
109
+ return "given";
110
+ if (computed.changed.includes(rootNode))
111
+ return "changed";
112
+ const bumped = computed.plan.packageCauses.get(rootNode);
113
+ if (bumped !== undefined)
114
+ return bumped;
115
+ const setting = computed.plan.settingCauses.get(rootNode);
116
+ if (setting !== undefined)
117
+ return setting;
118
+ if (computed.barrelNames.includes(rootNode))
119
+ return "barrel name moved";
120
+ for (const { narrower, result } of computed.narrowed) {
121
+ if ("seeds" in result && result.seeds.includes(rootNode)) {
122
+ return `seeded by the ${narrower.name} narrower`;
123
+ }
124
+ }
125
+ return "changed";
126
+ }
127
+ function walks(computed, { name, types }, from) {
128
+ const { plan, graph } = computed;
129
+ if (from !== undefined)
130
+ return [{ seeds: [from], types }];
131
+ const { quiet, layout } = plan;
132
+ const sealed = types ? plan.sealed.types : plan.sealed.runtime;
133
+ const narrowings = plan.narrowings.get(name);
134
+ if (!narrowings) {
135
+ return [{ seeds: plan.seeds, quiet, layout, types, sealed }];
136
+ }
137
+ const matched = new Set(narrowings.flatMap((narrowing) => narrowing.matched));
138
+ return [
139
+ {
140
+ seeds: plan.seeds.filter((seed) => !matched.has(seed)),
141
+ quiet,
142
+ layout,
143
+ types,
144
+ sealed
145
+ },
146
+ ...narrowings.map((narrowing) => ({
147
+ seeds: [...narrowing.matched, ...narrowing.seeds].filter((seed) => graph.has(seed) || computed.changed.includes(seed)),
148
+ opaque: narrowing.narrower.opaque,
149
+ layout,
150
+ types
151
+ }))
152
+ ];
153
+ }
154
+ function shortestChain(computed, candidates, test) {
155
+ for (const { seeds, ...options } of candidates) {
156
+ const parents = new Map;
157
+ const reached = affectedBy(computed.graph, seeds, { ...options, parents });
158
+ if (!reached.has(test))
159
+ continue;
160
+ const edges = [];
161
+ let node = test;
162
+ for (let via = parents.get(node);via; via = parents.get(node)) {
163
+ edges.push([node, via]);
164
+ node = via.from;
165
+ if (via.kind === "unknown")
166
+ break;
167
+ }
168
+ return { edges, root: node };
169
+ }
170
+ return;
171
+ }
172
+ function reachers(computed, candidates, test, except) {
173
+ const found = new Set;
174
+ const unseen = (seed) => seed !== except && !found.has(seed);
175
+ for (const { seeds, quiet = [], ...options } of candidates) {
176
+ for (const seed of seeds.filter(unseen)) {
177
+ if (affectedBy(computed.graph, [seed], options).has(test)) {
178
+ found.add(seed);
179
+ }
180
+ }
181
+ for (const seed of quiet.filter(unseen)) {
182
+ const reached = affectedBy(computed.graph, [], {
183
+ ...options,
184
+ quiet: [seed]
185
+ });
186
+ if (reached.has(test))
187
+ found.add(seed);
188
+ }
189
+ }
190
+ return sorted(found);
191
+ }
192
+ async function chainOf(context, { edges, root }, from) {
193
+ const last = edges.at(-1);
194
+ const [links, causes] = await Promise.all([
195
+ Promise.all(edges.map(async ([node, via]) => ({
196
+ node,
197
+ kind: via.kind,
198
+ ...await edgeAt(context, node, via)
199
+ }))),
200
+ last?.[1].kind === "unknown" ? causesOf(context.root, context.computed, last[0]) : []
201
+ ]);
202
+ return {
203
+ links,
204
+ root,
205
+ cause: rootCause(context.computed, root, from),
206
+ unknown: causes.map((cause) => ({ ...cause, fix: fixFor2(cause.cause) }))
207
+ };
208
+ }
209
+ function unselected(config, computed, suite, from) {
210
+ const changed = computed.changed.length;
211
+ if (from === undefined)
212
+ return { kind: "unselected", suite, changed };
213
+ const reachedBy = walksByTypes(computed.graph, [from], {
214
+ includeUnknown: false
215
+ });
216
+ const reaches = {};
217
+ let example;
218
+ for (const { name, isTest, types } of config.suites) {
219
+ const tests = sorted(reachedBy(types)).filter((node) => isTest(node));
220
+ if (tests.length === 0)
221
+ continue;
222
+ reaches[name] = tests.length;
223
+ if (name === suite || example === undefined)
224
+ example = tests[0];
225
+ }
226
+ return {
227
+ kind: "unselected",
228
+ suite,
229
+ from,
230
+ changed,
231
+ reaches,
232
+ ...example !== undefined && { example }
233
+ };
234
+ }
235
+ async function explain(root, config, computed, test, from, { all = false } = {}) {
236
+ const suite = config.suites.find((candidate) => candidate.isTest(test));
237
+ if (!suite) {
238
+ throw new BiviumError2("BV_UNKNOWN_TEST", `bivium why: ${test} is no suite's test`);
239
+ }
240
+ if (!computed.graph.has(test)) {
241
+ throw new BiviumError2("BV_UNKNOWN_FILE", `bivium why: no file ${test}`);
242
+ }
243
+ if (from === undefined && computed.plan.full.includes(suite.name)) {
244
+ return { kind: "full", suite: suite.name, reasons: computed.plan.reasons };
245
+ }
246
+ const candidates = walks(computed, suite, from);
247
+ const found = shortestChain(computed, candidates, test);
248
+ if (!found)
249
+ return unselected(config, computed, suite.name, from);
250
+ const context = {
251
+ root,
252
+ config,
253
+ computed,
254
+ resolve: createResolver({
255
+ files: new Set(computed.graph.keys()),
256
+ config,
257
+ packages: computed.packages,
258
+ tsconfigs: computed.tsconfigs
259
+ })
260
+ };
261
+ const everything = found.edges.at(-1)?.[1].kind === "unknown";
262
+ const more = from !== undefined || everything ? [] : reachers(computed, candidates, test, found.root);
263
+ const [chain, others] = await Promise.all([
264
+ chainOf(context, found, from),
265
+ Promise.all((all ? more : []).map((seed) => {
266
+ const alone = candidates.map((walk) => ({
267
+ ...walk,
268
+ seeds: walk.seeds.filter((candidate) => candidate === seed),
269
+ ...walk.quiet && {
270
+ quiet: walk.quiet.filter((candidate) => candidate === seed)
271
+ }
272
+ }));
273
+ const other = shortestChain(computed, alone, test);
274
+ return other === undefined ? Promise.resolve(undefined) : chainOf(context, other, undefined);
275
+ }))
276
+ ]);
277
+ return {
278
+ kind: "chain",
279
+ suite: suite.name,
280
+ test,
281
+ ...chain,
282
+ more,
283
+ others: others.filter((other) => other !== undefined)
284
+ };
285
+ }
286
+ var FORMATS = ["tree", "chain", "source"];
287
+ function isFormat(value) {
288
+ return FORMATS.some((format) => format === value);
289
+ }
290
+ var VERBS = {
291
+ import: "imported by",
292
+ type: "type-imported by",
293
+ setup: "a setup file of",
294
+ goto: "opened by",
295
+ html: "loaded by page",
296
+ name: "imported by",
297
+ glob: "globbed by",
298
+ "depends-on": "depended on by",
299
+ edges: "an input of",
300
+ reads: "read as text by",
301
+ lists: "listed by",
302
+ unknown: "depends on every change"
303
+ };
304
+ var LIST = 3;
305
+ function nameOf(node) {
306
+ return node.slice(node.indexOf("#") + 1);
307
+ }
308
+ function aligned(rows, paint) {
309
+ const width = Math.max(0, ...rows.filter(([, , at]) => at !== undefined).map(([, t]) => t.length));
310
+ return rows.map(([shown, plain, at]) => at === undefined ? shown : `${shown}${" ".repeat(width - plain.length)} ${paint.dim(at)}`);
311
+ }
312
+ function tree(test, chain, paint) {
313
+ const rows = [[paint.bold(test), test, undefined]];
314
+ const row = (indent, glyph, shown, plain) => [
315
+ `${indent}${paint.dim(glyph)}${shown}`,
316
+ `${indent}${glyph}${plain}`
317
+ ];
318
+ const width = Math.max(0, ...chain.links.filter((link) => link.kind !== "unknown").map((link) => link.kind.length));
319
+ let indent = "";
320
+ for (const [i, link] of chain.links.entries()) {
321
+ const next = chain.links[i + 1]?.node ?? chain.root;
322
+ if (link.kind === "unknown") {
323
+ const every = "depends on every change:";
324
+ rows.push([...row(indent, "└─ ", every, every), undefined]);
325
+ for (const { cause, at } of chain.unknown) {
326
+ const plain = `${indent} ✗ ${cause}`;
327
+ rows.push([`${indent} ${paint.bad("✗")} ${cause}`, plain, at]);
328
+ }
329
+ indent += " ";
330
+ rows.push([...row(indent, "└─ ", next, next), undefined]);
331
+ indent += " ";
332
+ break;
333
+ }
334
+ const kind = link.kind.padEnd(width);
335
+ rows.push([
336
+ ...row(indent, "└─ ", `${paint.faint(kind)} ${next}`, `${kind} ${next}`),
337
+ link.at
338
+ ]);
339
+ indent += " ";
340
+ }
341
+ const end = `${indent}● ${chain.cause}`;
342
+ rows.push([end, end, undefined]);
343
+ return aligned(rows, paint);
344
+ }
345
+ function verbOf(link) {
346
+ return link.kind === "export" ? `exported as ${nameOf(link.node)}` : VERBS[link.kind];
347
+ }
348
+ function whereOf(link) {
349
+ const configured = CONFIGURED[link.kind];
350
+ if (configured !== undefined)
351
+ return `${link.node} (${configured})`;
352
+ return link.at ?? link.node;
353
+ }
354
+ function steps(links, paint) {
355
+ const rows = [...links].reverse().map((link) => [verbOf(link), whereOf(link)]);
356
+ const width = Math.max(0, ...rows.map(([verb]) => verb.length));
357
+ return rows.map(([verb, where], i) => i === rows.length - 1 ? `${paint.faint(verb.padEnd(width))} ${paint.bold(where)} ← selected` : `${paint.faint(verb.padEnd(width))} ${paint.dim(where)}`);
358
+ }
359
+ function header({ root, cause }) {
360
+ if (cause === "changed")
361
+ return `${root} changed`;
362
+ if (cause === "given")
363
+ return `if ${root} changes`;
364
+ return `${root}: ${cause}`;
365
+ }
366
+ function chained(test, chain, paint) {
367
+ const unknownAt = chain.links.findIndex((link) => link.kind === "unknown");
368
+ const unknownLink = chain.links[unknownAt];
369
+ if (unknownLink === undefined) {
370
+ return [
371
+ header(chain),
372
+ ...steps(chain.links, paint).map((step) => ` ${step}`)
373
+ ];
374
+ }
375
+ const node = unknownLink.node;
376
+ const where = chain.unknown.map(({ at }) => at ?? node);
377
+ const width = Math.max(0, ...where.map((at) => at.length));
378
+ const lines = [`${paint.bold(test)} runs on every change`];
379
+ for (const { at, cause, fix } of chain.unknown) {
380
+ lines.push(` because ${paint.dim((at ?? node).padEnd(width))} ${cause}`, ` ${paint.good("fix")}: ${fix}`);
381
+ }
382
+ if (unknownAt > 0) {
383
+ lines.push(` reached via ${node}`, ...steps(chain.links.slice(0, unknownAt), paint).map((step) => ` ${step}`));
384
+ }
385
+ return lines;
386
+ }
387
+ var LINE_NUMBER = /:(\d+)$/;
388
+ function lineNumber(at) {
389
+ return at === undefined ? undefined : LINE_NUMBER.exec(at)?.[1];
390
+ }
391
+ function sourced(test, chain, paint) {
392
+ const unknownAt = chain.links.findIndex((link) => link.kind === "unknown");
393
+ const unknownLink = chain.links[unknownAt];
394
+ const hops = unknownLink === undefined ? chain.links : chain.links.slice(0, unknownAt);
395
+ const numbers = [...chain.links, ...chain.unknown].map(({ at }) => lineNumber(at));
396
+ const width = Math.max(0, ...numbers.map((n) => n?.length ?? 0));
397
+ const gutter = " ".repeat(width);
398
+ const cited = (at, text) => {
399
+ const n = lineNumber(at);
400
+ return n === undefined || text === undefined ? [] : [`${paint.dim(`${n.padStart(width)} |`)} ${text}`];
401
+ };
402
+ const count = plural2(hops.length, "hop", "hops");
403
+ const lines = unknownLink === undefined ? [
404
+ `selected: ${paint.bold(test)} ← ${chain.root} (${count}${chain.cause === "changed" ? "" : `, ${chain.cause}`})`
405
+ ] : [
406
+ `selected: ${paint.bold(test)} ← every change (${unknownAt === 0 ? "its dependencies can't be read" : `${count} to ${unknownLink.node}, whose dependencies can't be read`})`
407
+ ];
408
+ lines.push("");
409
+ for (const link of hops) {
410
+ const configured = CONFIGURED[link.kind];
411
+ const where = configured === undefined ? link.at ?? link.node : link.node;
412
+ const kind = configured ?? link.kind;
413
+ lines.push(`${gutter}${paint.dim("-->")} ${paint.dim(where)} ${paint.faint(kind)}`, ...cited(link.at, link.text));
414
+ }
415
+ if (unknownLink === undefined) {
416
+ lines.push(`${gutter}● ${chain.root}: ${chain.cause}`);
417
+ return lines;
418
+ }
419
+ const node = unknownLink.node;
420
+ for (const { cause, at, text, fix } of chain.unknown) {
421
+ lines.push(`${gutter}${paint.bad("✗")} ${paint.dim(at ?? node)} ${cause}`, ...cited(at, text), `${gutter} = ${paint.good("fix")}: ${fix}`);
422
+ }
423
+ return lines;
424
+ }
425
+ var RENDER = {
426
+ tree,
427
+ chain: chained,
428
+ source: sourced
429
+ };
430
+ function moreLine(more, all) {
431
+ const shown = more.slice(0, LIST).join(", ");
432
+ const rest = more.length > LIST ? ", …" : "";
433
+ const changes = plural2(more.length, "more change reaches", "more changes reach");
434
+ const hint = all ? "" : " (--all shows each chain)";
435
+ return `+ ${changes} this test: ${shown}${rest}${hint}`;
436
+ }
437
+ function unselectedMessage(explanation) {
438
+ const { from, changed, reaches, example } = explanation;
439
+ if (from === undefined) {
440
+ return changed === 0 ? "Not selected: nothing changed." : `Not selected: ${changed === 1 ? "the changed file doesn't reach" : `none of the ${changed} changed files reaches`} it.`;
441
+ }
442
+ const counts = Object.entries(reaches ?? {}).map(([suite, count]) => `${count} ${suite}`);
443
+ const total = Object.values(reaches ?? {}).reduce((a, b) => a + b, 0);
444
+ return [
445
+ `Not selected by a change to ${from}: no chain reaches it.`,
446
+ total === 0 ? "Its chains reach no test." : `Its chains reach ${plural2(total, "test", "tests")} (${counts.join(", ")}), such as ${example}.`
447
+ ].join(`
448
+ `);
449
+ }
450
+ function formatExplanation(explanation, format = "tree", paint = PLAIN2) {
451
+ if (explanation.kind === "full") {
452
+ return [
453
+ `The ${explanation.suite} suite runs in full:`,
454
+ ...explanation.reasons.map((reason) => ` ${reason}`)
455
+ ].join(`
456
+ `);
457
+ }
458
+ if (explanation.kind === "unselected")
459
+ return unselectedMessage(explanation);
460
+ const { test, more, others } = explanation;
461
+ const render = RENDER[format];
462
+ const lines = render(test, explanation, paint);
463
+ if (more.length > 0) {
464
+ lines.push(paint.dim(moreLine(more, others.length > 0)));
465
+ }
466
+ for (const other of others)
467
+ lines.push("", ...render(test, other, paint));
468
+ return lines.join(`
469
+ `);
470
+ }
471
+ export {
472
+ explain,
473
+ formatExplanation,
474
+ isFormat
475
+ };
@@ -0,0 +1,68 @@
1
+ import {
2
+ SEPARATOR2
3
+ } from "./shared-a8ebfhzf.js";
4
+ import {
5
+ version
6
+ } from "./shared-x17wzptz.js";
7
+
8
+ // src/help.ts
9
+ var row = (p, name, does, preset) => ` ${name.padEnd(21)}${does}${preset === undefined ? "" : p.dim(`${SEPARATOR2}${preset}`)}`;
10
+ var example = (p, intent, command) => ` ${p.dim(`# ${intent}`)}
11
+ ${command}`;
12
+ function usage(p) {
13
+ return `${p.bold("bivium")} ${version}${p.dim(`${SEPARATOR2}run only the tests your change can reach`)}
14
+
15
+ ${p.bold("Usage")}
16
+ bivium <command> [arguments] [options]
17
+
18
+ ${p.bold("Commands")}
19
+ ${row(p, "plan [base]", "the tests a change can affect, per suite")}
20
+ ${row(p, "run [base]", "run a suite's selected tests")}
21
+ ${row(p, "why <test> [file]", "the chain from a change, or a file, to a test")}
22
+ ${row(p, "check", "what the graph can't read, and dead globs")}
23
+ ${row(p, "graph", "each file's test fan-in, and the graph")}
24
+
25
+ base defaults to the config's base, else the upstream default branch.
26
+ Options go before or after the command, as --flag value or --flag=value.
27
+ A path is repo-relative, relative to the current directory, or absolute.
28
+
29
+ ${p.bold("Options")}
30
+ ${row(p, "--config <file>", "the config file", "bivium.config.{ts,mts,mjs,js,json}")}
31
+ ${row(p, "--cwd <dir>", "the repository", "the current directory")}
32
+ ${row(p, "--no-cache", "read every file; skip the extraction cache")}
33
+ ${row(p, "--json", "plan, why, check, graph: print JSON")}
34
+ ${row(p, "--color, --no-color", "force color on or off", "on in a terminal")}
35
+ ${row(p, "-h, --help", "this help")}
36
+ ${row(p, "-v, --version", "the version")}
37
+
38
+ ${p.bold(" plan")}
39
+ ${row(p, "--list", "the files, as when piped, on a terminal too")}
40
+ ${row(p, "--github", "also write each suite's selection to $GITHUB_OUTPUT")}
41
+ ${p.bold(" run")}
42
+ ${row(p, "--suite <name>", "the suite to run", "the first")}
43
+ ${p.bold(" why")}
44
+ ${row(p, "--base <ref>", "the base ref", "as for plan")}
45
+ ${row(p, "--format <f>", "tree, chain, source or json", "tree")}
46
+ ${row(p, "--all", "every change's chain, not only the shortest")}
47
+ ${p.bold(" check")}
48
+ ${row(p, "--base <ref>", "the base ref", "HEAD")}
49
+ ${row(p, "--all", "every file, and each fix whole")}
50
+ ${row(p, "--max-unknown <n>", "fail past n unknown files that reach a test")}
51
+ ${p.bold(" graph")}
52
+ ${row(p, "--suite <name>", "only this suite", "every suite")}
53
+ ${row(p, "--top <n>", "files to list per suite", "10")}
54
+
55
+ ${p.bold("Examples")}
56
+ ${example(p, "the tests this branch needs, as data", "bivium plan origin/main --json")}
57
+ ${example(p, "how a change to a file reaches a test", "bivium why tests/Button.test.ts src/Button.svelte --format chain")}
58
+ ${example(p, "fail CI when a file bivium can't follow reaches a test", "bivium check --max-unknown 0")}
59
+
60
+ ${p.bold("For agents")}
61
+ Run with --json; read ok and summary. Exit 0 done, 1 check found
62
+ problems, 2 a usage, config or git error; run exits with its command's,
63
+ or 130 on Ctrl-C. With --json, an error is JSON too: error.kind (usage,
64
+ config, git or other), error.code and error.message.`;
65
+ }
66
+ export {
67
+ usage
68
+ };