@zinn-dev/cli 0.41.0 → 0.43.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/README.md +11 -689
- package/index.js +2 -2
- package/package.json +4 -4
- package/skills/zinn/SKILL.md +1 -1
- package/src/capabilities-schema.d.ts +25 -26
- package/src/capabilities-schema.js +17 -82
- package/src/capabilities.d.ts +11 -3
- package/src/capabilities.js +12 -4
- package/src/column-hint.d.ts +3 -0
- package/src/column-hint.js +225 -0
- package/src/database.js +1 -4
- package/src/errors.d.ts +31 -3
- package/src/errors.js +77 -20
- package/src/input.d.ts +154 -43
- package/src/input.js +86 -13
- package/src/lib.d.ts +43 -6
- package/src/lib.js +134 -38
- package/src/list-continuation.d.ts +11 -0
- package/src/list-continuation.js +18 -0
- package/src/list-limit.d.ts +11 -0
- package/src/list-limit.js +17 -0
- package/src/presentation/activity-presentation.d.ts +9 -1
- package/src/presentation/activity-presentation.js +124 -28
- package/src/presentation/capabilities-presentation.d.ts +2 -0
- package/src/presentation/capabilities-presentation.js +3 -0
- package/src/presentation/column-presentation.d.ts +6 -0
- package/src/presentation/column-presentation.js +10 -0
- package/src/presentation/comment-presentation.d.ts +15 -0
- package/src/presentation/comment-presentation.js +29 -0
- package/src/presentation/description-presentation.d.ts +4 -0
- package/src/presentation/description-presentation.js +28 -5
- package/src/presentation/label-presentation.d.ts +8 -0
- package/src/presentation/label-presentation.js +28 -0
- package/src/presentation/project-presentation.d.ts +11 -0
- package/src/presentation/project-presentation.js +27 -0
- package/src/presentation/relation-presentation.d.ts +12 -0
- package/src/presentation/relation-presentation.js +87 -0
- package/src/presentation/row-layout.d.ts +1 -1
- package/src/presentation/row-layout.js +6 -5
- package/src/presentation/task-presentation.d.ts +3 -3
- package/src/presentation/task-presentation.js +29 -19
- package/src/presentation/text-width.d.ts +2 -0
- package/src/presentation/text-width.js +43 -0
- package/src/presentation/time.d.ts +3 -1
- package/src/presentation/time.js +5 -2
- package/src/project.d.ts +14 -5
- package/src/project.js +18 -6
- package/src/result-schemas.d.ts +279 -26
- package/src/result-schemas.js +72 -4
- package/src/results.d.ts +34 -17
- package/src/results.js +19 -0
- package/src/routes/activity-router.d.ts +79 -2
- package/src/routes/activity-router.js +209 -38
- package/src/routes/aliases.d.ts +2 -0
- package/src/routes/aliases.js +11 -0
- package/src/routes/capabilities-router.js +9 -3
- package/src/routes/comment-router.d.ts +41 -18
- package/src/routes/comment-router.js +65 -48
- package/src/routes/label-router.d.ts +57 -7
- package/src/routes/label-router.js +84 -39
- package/src/routes/project-router.d.ts +74 -12
- package/src/routes/project-router.js +131 -66
- package/src/routes/relation-router.d.ts +13 -9
- package/src/routes/relation-router.js +116 -116
- package/src/routes/restore-router.js +3 -6
- package/src/routes/router.d.ts +1 -1
- package/src/routes/router.js +88 -32
- package/src/routes/routes.d.ts +420 -50
- package/src/routes/routes.js +4 -0
- package/src/routes/task-router.d.ts +189 -30
- package/src/routes/task-router.js +254 -158
- package/src/routes/whoami-router.d.ts +21 -0
- package/src/routes/whoami-router.js +31 -0
- package/src/text-edit.d.ts +13 -9
- package/src/text-edit.js +23 -18
- package/src/text-input.d.ts +47 -0
- package/src/text-input.js +187 -0
- package/src/timestamp-input.d.ts +3 -0
- package/src/timestamp-input.js +31 -0
- package/src/types.d.ts +32 -9
- package/src/types.js +9 -1
package/src/routes/routes.js
CHANGED
|
@@ -7,7 +7,9 @@ import { restoreCommand } from "./restore-router.js";
|
|
|
7
7
|
import { migrateCommand } from "./migrate-router.js";
|
|
8
8
|
import { reindexCommand } from "./reindex-router.js";
|
|
9
9
|
import { infoCommand } from "./info-router.js";
|
|
10
|
+
import { whoamiCommand } from "./whoami-router.js";
|
|
10
11
|
import { capabilitiesCommand } from "./capabilities-router.js";
|
|
12
|
+
import { parseRoutes } from "./router.js";
|
|
11
13
|
// TODO: lazy load?
|
|
12
14
|
export const routes = {
|
|
13
15
|
project: projectRouter,
|
|
@@ -19,5 +21,7 @@ export const routes = {
|
|
|
19
21
|
migrate: migrateCommand,
|
|
20
22
|
reindex: reindexCommand,
|
|
21
23
|
info: infoCommand,
|
|
24
|
+
whoami: whoamiCommand,
|
|
22
25
|
capabilities: capabilitiesCommand,
|
|
23
26
|
};
|
|
27
|
+
export const parsedRoutes = parseRoutes(routes);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ParseArgsOptionsConfig } from "node:util";
|
|
2
2
|
declare function suggestTaskMove(args: Array<string>, options?: ParseArgsOptionsConfig): string[];
|
|
3
3
|
export declare const taskRouter: {
|
|
4
4
|
create: {
|
|
@@ -27,6 +27,14 @@ export declare const taskRouter: {
|
|
|
27
27
|
readonly name: "text";
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
|
+
readonly "description-file": {
|
|
31
|
+
readonly type: "string";
|
|
32
|
+
readonly value: {
|
|
33
|
+
readonly kind: "path";
|
|
34
|
+
readonly name: "path";
|
|
35
|
+
readonly description: "A UTF-8 file, or \"-\" for stdin. Trailing line breaks are dropped; empty or blank input is an error.";
|
|
36
|
+
};
|
|
37
|
+
};
|
|
30
38
|
readonly priority: {
|
|
31
39
|
readonly type: "string";
|
|
32
40
|
readonly value: {
|
|
@@ -37,6 +45,14 @@ export declare const taskRouter: {
|
|
|
37
45
|
readonly description: "Omission leaves priority unassigned on creation and unchanged on edit. none clears priority; JSON uses null.";
|
|
38
46
|
};
|
|
39
47
|
};
|
|
48
|
+
readonly due: {
|
|
49
|
+
readonly type: "string";
|
|
50
|
+
readonly value: {
|
|
51
|
+
readonly kind: "timestamp";
|
|
52
|
+
readonly name: "timestamp";
|
|
53
|
+
readonly description: "Integer epoch milliseconds or YYYY-MM-DDTHH:mm:ss[.SSS] with Z or a numeric offset. Fractions have 1 to 3 digits. none clears the deadline, ignoring case. Omission leaves it unset on creation and unchanged on edit.";
|
|
54
|
+
};
|
|
55
|
+
};
|
|
40
56
|
readonly label: {
|
|
41
57
|
readonly type: "string";
|
|
42
58
|
readonly multiple: true;
|
|
@@ -94,11 +110,18 @@ export declare const taskRouter: {
|
|
|
94
110
|
};
|
|
95
111
|
}];
|
|
96
112
|
}];
|
|
97
|
-
readonly constraints: readonly [
|
|
98
|
-
|
|
113
|
+
readonly constraints: readonly [{
|
|
114
|
+
readonly kind: "exclusive";
|
|
115
|
+
readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
|
|
116
|
+
}];
|
|
117
|
+
readonly notes: readonly ["Omit the project key to use defaultProject from settings; otherwise a project key is required."];
|
|
99
118
|
};
|
|
100
119
|
results: import("../results.js").CommandResult[];
|
|
101
|
-
|
|
120
|
+
guessedFlags: {
|
|
121
|
+
"--status": (args: string[]) => string[];
|
|
122
|
+
"--body": (args: string[]) => string[];
|
|
123
|
+
};
|
|
124
|
+
run: (args: string[]) => Promise<void>;
|
|
102
125
|
help: string;
|
|
103
126
|
};
|
|
104
127
|
list: {
|
|
@@ -112,6 +135,23 @@ export declare const taskRouter: {
|
|
|
112
135
|
};
|
|
113
136
|
input: {
|
|
114
137
|
readonly options: {
|
|
138
|
+
readonly limit: {
|
|
139
|
+
readonly type: "string";
|
|
140
|
+
readonly value: {
|
|
141
|
+
readonly kind: "positive-integer";
|
|
142
|
+
readonly name: "n";
|
|
143
|
+
readonly pattern: string;
|
|
144
|
+
};
|
|
145
|
+
readonly description: "Return at most n results after all filters. Use an integer from 1 through 11871.";
|
|
146
|
+
};
|
|
147
|
+
readonly sort: {
|
|
148
|
+
readonly type: "string";
|
|
149
|
+
readonly value: {
|
|
150
|
+
readonly kind: "enum";
|
|
151
|
+
readonly name: "key";
|
|
152
|
+
readonly choices: ("activity" | "due")[];
|
|
153
|
+
};
|
|
154
|
+
};
|
|
115
155
|
readonly archived: {
|
|
116
156
|
readonly type: "boolean";
|
|
117
157
|
};
|
|
@@ -136,6 +176,30 @@ export declare const taskRouter: {
|
|
|
136
176
|
readonly name: "name";
|
|
137
177
|
};
|
|
138
178
|
};
|
|
179
|
+
readonly "starting-after": {
|
|
180
|
+
readonly type: "string";
|
|
181
|
+
readonly value: {
|
|
182
|
+
readonly kind: "task-id";
|
|
183
|
+
readonly name: "id";
|
|
184
|
+
readonly description: "Task UUID or globally unambiguous left prefix with at least 8 hexadecimal digits. Canonical or compact, case-insensitive";
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
readonly "due-since": {
|
|
188
|
+
readonly type: "string";
|
|
189
|
+
readonly value: {
|
|
190
|
+
readonly kind: "timestamp";
|
|
191
|
+
readonly name: "timestamp";
|
|
192
|
+
readonly description: "Inclusive lower deadline bound. Integer epoch milliseconds or a timestamp with seconds and Z or a numeric offset. Fractions have 1 to 3 digits. Undated tasks do not match.";
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
readonly "due-until": {
|
|
196
|
+
readonly type: "string";
|
|
197
|
+
readonly value: {
|
|
198
|
+
readonly kind: "timestamp";
|
|
199
|
+
readonly name: "timestamp";
|
|
200
|
+
readonly description: "Inclusive upper deadline bound in the same formats as --due-since. Must be at or after --due-since. Undated tasks do not match.";
|
|
201
|
+
};
|
|
202
|
+
};
|
|
139
203
|
};
|
|
140
204
|
readonly forms: readonly [{
|
|
141
205
|
readonly id: "default";
|
|
@@ -155,7 +219,7 @@ export declare const taskRouter: {
|
|
|
155
219
|
readonly kind: "exclusive";
|
|
156
220
|
readonly members: readonly ["positional:project-key", "option:all-projects"];
|
|
157
221
|
}];
|
|
158
|
-
readonly notes: readonly ["An omitted project key
|
|
222
|
+
readonly notes: readonly ["An omitted project key uses defaultProject, or all projects if unset. --all-projects overrides the default and cannot be combined with a project key.", "A --starting-after task must match every selection filter. Cursor resolution uses current task identities before list filtering."];
|
|
159
223
|
};
|
|
160
224
|
results: import("../results.js").CommandResult[];
|
|
161
225
|
run: (args: string[]) => void;
|
|
@@ -186,8 +250,9 @@ export declare const taskRouter: {
|
|
|
186
250
|
readonly value: {
|
|
187
251
|
readonly kind: "positive-integer";
|
|
188
252
|
readonly name: "n";
|
|
189
|
-
readonly pattern:
|
|
253
|
+
readonly pattern: string;
|
|
190
254
|
};
|
|
255
|
+
readonly description: "Return at most n results after all filters. Use an integer from 1 through 11871.";
|
|
191
256
|
};
|
|
192
257
|
readonly label: {
|
|
193
258
|
readonly type: "string";
|
|
@@ -197,6 +262,22 @@ export declare const taskRouter: {
|
|
|
197
262
|
readonly name: "name";
|
|
198
263
|
};
|
|
199
264
|
};
|
|
265
|
+
readonly "due-since": {
|
|
266
|
+
readonly type: "string";
|
|
267
|
+
readonly value: {
|
|
268
|
+
readonly kind: "timestamp";
|
|
269
|
+
readonly name: "timestamp";
|
|
270
|
+
readonly description: "Inclusive lower deadline bound. Integer epoch milliseconds or a timestamp with seconds and Z or a numeric offset. Fractions have 1 to 3 digits. Undated tasks do not match.";
|
|
271
|
+
};
|
|
272
|
+
};
|
|
273
|
+
readonly "due-until": {
|
|
274
|
+
readonly type: "string";
|
|
275
|
+
readonly value: {
|
|
276
|
+
readonly kind: "timestamp";
|
|
277
|
+
readonly name: "timestamp";
|
|
278
|
+
readonly description: "Inclusive upper deadline bound in the same formats as --due-since. Must be at or after --due-since. Undated tasks do not match.";
|
|
279
|
+
};
|
|
280
|
+
};
|
|
200
281
|
};
|
|
201
282
|
readonly forms: readonly [{
|
|
202
283
|
readonly id: "default";
|
|
@@ -223,7 +304,7 @@ export declare const taskRouter: {
|
|
|
223
304
|
readonly kind: "exclusive";
|
|
224
305
|
readonly members: readonly ["positional:project-key", "option:all-projects"];
|
|
225
306
|
}];
|
|
226
|
-
readonly notes: readonly ["An omitted project key
|
|
307
|
+
readonly notes: readonly ["An omitted project key uses defaultProject, or all projects if unset. --all-projects overrides the default and cannot be combined with a project key.", "A query that is a task key ignores defaultProject unless a project was typed. --all-projects still excludes a typed project."];
|
|
227
308
|
};
|
|
228
309
|
results: import("../results.js").CommandResult[];
|
|
229
310
|
run: (args: string[]) => void;
|
|
@@ -282,6 +363,14 @@ export declare const taskRouter: {
|
|
|
282
363
|
readonly description: "Omission leaves priority unassigned on creation and unchanged on edit. none clears priority; JSON uses null.";
|
|
283
364
|
};
|
|
284
365
|
};
|
|
366
|
+
readonly due: {
|
|
367
|
+
readonly type: "string";
|
|
368
|
+
readonly value: {
|
|
369
|
+
readonly kind: "timestamp";
|
|
370
|
+
readonly name: "timestamp";
|
|
371
|
+
readonly description: "Integer epoch milliseconds or YYYY-MM-DDTHH:mm:ss[.SSS] with Z or a numeric offset. Fractions have 1 to 3 digits. none clears the deadline, ignoring case. Omission leaves it unset on creation and unchanged on edit.";
|
|
372
|
+
};
|
|
373
|
+
};
|
|
285
374
|
readonly "add-label": {
|
|
286
375
|
readonly type: "string";
|
|
287
376
|
readonly multiple: true;
|
|
@@ -325,6 +414,14 @@ export declare const taskRouter: {
|
|
|
325
414
|
readonly name: "text";
|
|
326
415
|
};
|
|
327
416
|
};
|
|
417
|
+
readonly "description-file": {
|
|
418
|
+
readonly type: "string";
|
|
419
|
+
readonly value: {
|
|
420
|
+
readonly kind: "path";
|
|
421
|
+
readonly name: "path";
|
|
422
|
+
readonly description: "A UTF-8 file, or \"-\" for stdin. Trailing line breaks are dropped; empty or blank input is an error.";
|
|
423
|
+
};
|
|
424
|
+
};
|
|
328
425
|
};
|
|
329
426
|
readonly forms: readonly [{
|
|
330
427
|
readonly id: "default";
|
|
@@ -338,32 +435,36 @@ export declare const taskRouter: {
|
|
|
338
435
|
}];
|
|
339
436
|
}];
|
|
340
437
|
readonly constraints: readonly [{
|
|
438
|
+
readonly kind: "exclusive";
|
|
439
|
+
readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
|
|
440
|
+
}, {
|
|
341
441
|
readonly kind: "exclusive";
|
|
342
442
|
readonly members: readonly ["option:append", "option:replacing"];
|
|
343
443
|
}, {
|
|
344
|
-
readonly kind: "
|
|
444
|
+
readonly kind: "requiresAny";
|
|
345
445
|
readonly input: "option:append";
|
|
346
|
-
readonly
|
|
446
|
+
readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
|
|
347
447
|
}, {
|
|
348
|
-
readonly kind: "
|
|
448
|
+
readonly kind: "requiresAny";
|
|
349
449
|
readonly input: "option:replacing";
|
|
350
|
-
readonly
|
|
450
|
+
readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
|
|
351
451
|
}, {
|
|
352
452
|
readonly kind: "requires";
|
|
353
453
|
readonly input: "option:all";
|
|
354
454
|
readonly requires: "option:replacing";
|
|
355
455
|
}, {
|
|
356
456
|
readonly kind: "atLeastOne";
|
|
357
|
-
readonly members: readonly ["option:title", "option:description", "option:priority", "option:add-label", "option:remove-label"];
|
|
457
|
+
readonly members: readonly ["option:title", "option:description", "option:description-file", "option:priority", "option:due", "option:add-label", "option:remove-label"];
|
|
358
458
|
}];
|
|
359
459
|
readonly notes: readonly [string];
|
|
360
460
|
};
|
|
361
461
|
results: import("../results.js").CommandResult[];
|
|
362
|
-
run: (args: string[]) => void
|
|
462
|
+
run: (args: string[]) => Promise<void>;
|
|
363
463
|
help: string;
|
|
364
464
|
guessedFlags: {
|
|
365
465
|
"--status": (args: string[]) => string[];
|
|
366
466
|
"--column": (args: string[]) => string[];
|
|
467
|
+
"--body": (args: string[]) => string[];
|
|
367
468
|
};
|
|
368
469
|
};
|
|
369
470
|
move: {
|
|
@@ -418,6 +519,24 @@ export declare const taskRouter: {
|
|
|
418
519
|
readonly options: {};
|
|
419
520
|
readonly forms: readonly [{
|
|
420
521
|
readonly id: "absolute";
|
|
522
|
+
readonly positionals: readonly [{
|
|
523
|
+
readonly max: null;
|
|
524
|
+
readonly name: "task-key";
|
|
525
|
+
readonly min: 1;
|
|
526
|
+
readonly value: {
|
|
527
|
+
readonly kind: "task-key";
|
|
528
|
+
};
|
|
529
|
+
}, {
|
|
530
|
+
readonly name: "direction";
|
|
531
|
+
readonly min: 1;
|
|
532
|
+
readonly max: 1;
|
|
533
|
+
readonly value: {
|
|
534
|
+
readonly kind: "enum";
|
|
535
|
+
readonly choices: readonly ["top", "bottom"];
|
|
536
|
+
};
|
|
537
|
+
}];
|
|
538
|
+
}, {
|
|
539
|
+
readonly id: "step";
|
|
421
540
|
readonly positionals: readonly [{
|
|
422
541
|
readonly name: "task-key";
|
|
423
542
|
readonly min: 1;
|
|
@@ -431,15 +550,15 @@ export declare const taskRouter: {
|
|
|
431
550
|
readonly max: 1;
|
|
432
551
|
readonly value: {
|
|
433
552
|
readonly kind: "enum";
|
|
434
|
-
readonly choices: readonly ["
|
|
553
|
+
readonly choices: readonly ["up", "down"];
|
|
435
554
|
};
|
|
436
555
|
}];
|
|
437
556
|
}, {
|
|
438
557
|
readonly id: "relative";
|
|
439
558
|
readonly positionals: readonly [{
|
|
559
|
+
readonly max: null;
|
|
440
560
|
readonly name: "task-key";
|
|
441
561
|
readonly min: 1;
|
|
442
|
-
readonly max: 1;
|
|
443
562
|
readonly value: {
|
|
444
563
|
readonly kind: "task-key";
|
|
445
564
|
};
|
|
@@ -541,9 +660,9 @@ export declare const taskRouter: {
|
|
|
541
660
|
readonly forms: readonly [{
|
|
542
661
|
readonly id: "default";
|
|
543
662
|
readonly positionals: readonly [{
|
|
663
|
+
readonly max: null;
|
|
544
664
|
readonly name: "task-key";
|
|
545
665
|
readonly min: 1;
|
|
546
|
-
readonly max: 1;
|
|
547
666
|
readonly value: {
|
|
548
667
|
readonly kind: "task-key";
|
|
549
668
|
};
|
|
@@ -559,20 +678,23 @@ export declare const taskRouter: {
|
|
|
559
678
|
create: {
|
|
560
679
|
summary: string;
|
|
561
680
|
effects: {
|
|
562
|
-
domain: "
|
|
681
|
+
domain: "replace";
|
|
563
682
|
storage: "normal-open";
|
|
564
683
|
};
|
|
565
684
|
confirmation: {
|
|
566
|
-
kind: "
|
|
685
|
+
kind: "prompt";
|
|
686
|
+
description: string;
|
|
567
687
|
};
|
|
568
688
|
input: {
|
|
569
689
|
readonly options: {
|
|
690
|
+
readonly yes: {
|
|
691
|
+
readonly type: "boolean";
|
|
692
|
+
};
|
|
570
693
|
readonly type: {
|
|
571
694
|
readonly type: "string";
|
|
572
695
|
readonly required: true;
|
|
573
696
|
readonly value: {
|
|
574
697
|
readonly kind: "enum";
|
|
575
|
-
readonly name: "type";
|
|
576
698
|
readonly choices: ("related" | "dependency" | "duplicate" | "subtask")[];
|
|
577
699
|
};
|
|
578
700
|
};
|
|
@@ -598,7 +720,10 @@ export declare const taskRouter: {
|
|
|
598
720
|
readonly constraints: readonly [];
|
|
599
721
|
};
|
|
600
722
|
results: import("../results.js").CommandResult[];
|
|
601
|
-
|
|
723
|
+
guessedFlags: {
|
|
724
|
+
[k: string]: (args: Array<string>) => string[] | undefined;
|
|
725
|
+
};
|
|
726
|
+
run: (args: string[]) => Promise<void>;
|
|
602
727
|
help: string;
|
|
603
728
|
};
|
|
604
729
|
list: {
|
|
@@ -645,7 +770,6 @@ export declare const taskRouter: {
|
|
|
645
770
|
readonly required: true;
|
|
646
771
|
readonly value: {
|
|
647
772
|
readonly kind: "enum";
|
|
648
|
-
readonly name: "type";
|
|
649
773
|
readonly choices: ("related" | "dependency" | "duplicate" | "subtask")[];
|
|
650
774
|
};
|
|
651
775
|
};
|
|
@@ -671,6 +795,9 @@ export declare const taskRouter: {
|
|
|
671
795
|
readonly constraints: readonly [];
|
|
672
796
|
};
|
|
673
797
|
results: import("../results.js").CommandResult[];
|
|
798
|
+
guessedFlags: {
|
|
799
|
+
[k: string]: (args: Array<string>) => string[] | undefined;
|
|
800
|
+
};
|
|
674
801
|
run: (args: string[]) => void;
|
|
675
802
|
help: string;
|
|
676
803
|
};
|
|
@@ -689,12 +816,19 @@ export declare const taskRouter: {
|
|
|
689
816
|
readonly options: {
|
|
690
817
|
readonly text: {
|
|
691
818
|
readonly type: "string";
|
|
692
|
-
readonly required: true;
|
|
693
819
|
readonly value: {
|
|
694
820
|
readonly kind: "text";
|
|
695
821
|
readonly name: "text";
|
|
696
822
|
};
|
|
697
823
|
};
|
|
824
|
+
readonly "text-file": {
|
|
825
|
+
readonly type: "string";
|
|
826
|
+
readonly value: {
|
|
827
|
+
readonly kind: "path";
|
|
828
|
+
readonly name: "path";
|
|
829
|
+
readonly description: "A UTF-8 file, or \"-\" for stdin. Trailing line breaks are dropped; empty or blank input is an error.";
|
|
830
|
+
};
|
|
831
|
+
};
|
|
698
832
|
};
|
|
699
833
|
readonly forms: readonly [{
|
|
700
834
|
readonly id: "default";
|
|
@@ -707,10 +841,19 @@ export declare const taskRouter: {
|
|
|
707
841
|
};
|
|
708
842
|
}];
|
|
709
843
|
}];
|
|
710
|
-
readonly constraints: readonly [
|
|
844
|
+
readonly constraints: readonly [{
|
|
845
|
+
readonly kind: "exclusive";
|
|
846
|
+
readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
|
|
847
|
+
}, {
|
|
848
|
+
readonly kind: "atLeastOne";
|
|
849
|
+
readonly members: readonly ["option:text", "option:text-file"];
|
|
850
|
+
}];
|
|
711
851
|
};
|
|
712
852
|
results: import("../results.js").CommandResult[];
|
|
713
|
-
|
|
853
|
+
guessedFlags: {
|
|
854
|
+
"--body": (args: string[]) => string[];
|
|
855
|
+
};
|
|
856
|
+
run: (args: string[]) => Promise<void>;
|
|
714
857
|
help: string;
|
|
715
858
|
};
|
|
716
859
|
list: {
|
|
@@ -795,12 +938,19 @@ export declare const taskRouter: {
|
|
|
795
938
|
};
|
|
796
939
|
readonly text: {
|
|
797
940
|
readonly type: "string";
|
|
798
|
-
readonly required: true;
|
|
799
941
|
readonly value: {
|
|
800
942
|
readonly kind: "text";
|
|
801
943
|
readonly name: "text";
|
|
802
944
|
};
|
|
803
945
|
};
|
|
946
|
+
readonly "text-file": {
|
|
947
|
+
readonly type: "string";
|
|
948
|
+
readonly value: {
|
|
949
|
+
readonly kind: "path";
|
|
950
|
+
readonly name: "path";
|
|
951
|
+
readonly description: "A UTF-8 file, or \"-\" for stdin. Trailing line breaks are dropped; empty or blank input is an error.";
|
|
952
|
+
};
|
|
953
|
+
};
|
|
804
954
|
};
|
|
805
955
|
readonly forms: readonly [{
|
|
806
956
|
readonly id: "default";
|
|
@@ -814,25 +964,34 @@ export declare const taskRouter: {
|
|
|
814
964
|
}];
|
|
815
965
|
}];
|
|
816
966
|
readonly constraints: readonly [{
|
|
967
|
+
readonly kind: "exclusive";
|
|
968
|
+
readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
|
|
969
|
+
}, {
|
|
817
970
|
readonly kind: "exclusive";
|
|
818
971
|
readonly members: readonly ["option:append", "option:replacing"];
|
|
819
972
|
}, {
|
|
820
|
-
readonly kind: "
|
|
973
|
+
readonly kind: "requiresAny";
|
|
821
974
|
readonly input: "option:append";
|
|
822
|
-
readonly
|
|
975
|
+
readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
|
|
823
976
|
}, {
|
|
824
|
-
readonly kind: "
|
|
977
|
+
readonly kind: "requiresAny";
|
|
825
978
|
readonly input: "option:replacing";
|
|
826
|
-
readonly
|
|
979
|
+
readonly members: readonly ["option:description" | "option:text", "option:description-file" | "option:text-file"];
|
|
827
980
|
}, {
|
|
828
981
|
readonly kind: "requires";
|
|
829
982
|
readonly input: "option:all";
|
|
830
983
|
readonly requires: "option:replacing";
|
|
984
|
+
}, {
|
|
985
|
+
readonly kind: "atLeastOne";
|
|
986
|
+
readonly members: readonly ["option:text", "option:text-file"];
|
|
831
987
|
}];
|
|
832
988
|
readonly notes: readonly [string];
|
|
833
989
|
};
|
|
834
990
|
results: import("../results.js").CommandResult[];
|
|
835
|
-
|
|
991
|
+
guessedFlags: {
|
|
992
|
+
"--body": (args: string[]) => string[];
|
|
993
|
+
};
|
|
994
|
+
run: (args: string[]) => Promise<void>;
|
|
836
995
|
help: string;
|
|
837
996
|
};
|
|
838
997
|
delete: {
|