politty 0.3.0 → 0.3.2
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 +84 -2
- package/dist/{arg-registry-w5mMKJkZ.d.ts → arg-registry-B4a4Fj7f.d.cts} +51 -2
- package/dist/arg-registry-B4a4Fj7f.d.cts.map +1 -0
- package/dist/{arg-registry-i6SA4l-E.d.cts → arg-registry-C3GP-5C9.d.ts} +51 -2
- package/dist/arg-registry-C3GP-5C9.d.ts.map +1 -0
- package/dist/augment.d.cts +1 -1
- package/dist/augment.d.ts +1 -1
- package/dist/completion/index.cjs +23 -462
- package/dist/completion/index.cjs.map +1 -1
- package/dist/completion/index.d.cts +13 -91
- package/dist/completion/index.d.cts.map +1 -1
- package/dist/completion/index.d.ts +13 -91
- package/dist/completion/index.d.ts.map +1 -1
- package/dist/completion/index.js +12 -457
- package/dist/completion/index.js.map +1 -1
- package/dist/docs/index.cjs +718 -280
- package/dist/docs/index.cjs.map +1 -1
- package/dist/docs/index.d.cts +102 -47
- package/dist/docs/index.d.cts.map +1 -1
- package/dist/docs/index.d.ts +102 -47
- package/dist/docs/index.d.ts.map +1 -1
- package/dist/docs/index.js +713 -281
- package/dist/docs/index.js.map +1 -1
- package/dist/extractor-B7bOwpvP.cjs +970 -0
- package/dist/extractor-B7bOwpvP.cjs.map +1 -0
- package/dist/extractor-CCi4rjSI.d.ts +238 -0
- package/dist/extractor-CCi4rjSI.d.ts.map +1 -0
- package/dist/extractor-DsJ6hYqQ.d.cts +238 -0
- package/dist/extractor-DsJ6hYqQ.d.cts.map +1 -0
- package/dist/extractor-JfoYSoMk.js +898 -0
- package/dist/extractor-JfoYSoMk.js.map +1 -0
- package/dist/index.cjs +8 -5
- package/dist/index.d.cts +5 -3
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +5 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -4
- package/dist/{runner-B38UBqhv.cjs → runner-BFKk3Arg.cjs} +25 -13
- package/dist/runner-BFKk3Arg.cjs.map +1 -0
- package/dist/{runner-CUN50BqK.js → runner-ElQbBn1U.js} +25 -13
- package/dist/runner-ElQbBn1U.js.map +1 -0
- package/dist/{schema-extractor-B9D3Rf22.cjs → schema-extractor-BU705qpC.cjs} +43 -4
- package/dist/schema-extractor-BU705qpC.cjs.map +1 -0
- package/dist/{schema-extractor-CXeUTW_Z.d.cts → schema-extractor-CHiBRT39.d.ts} +6 -1
- package/dist/schema-extractor-CHiBRT39.d.ts.map +1 -0
- package/dist/{schema-extractor-1YXqFSDT.js → schema-extractor-CP3ar0Wi.js} +43 -4
- package/dist/schema-extractor-CP3ar0Wi.js.map +1 -0
- package/dist/{schema-extractor-Cl_D04BX.d.ts → schema-extractor-DyfK21m_.d.cts} +6 -1
- package/dist/schema-extractor-DyfK21m_.d.cts.map +1 -0
- package/package.json +6 -6
- package/dist/arg-registry-i6SA4l-E.d.cts.map +0 -1
- package/dist/arg-registry-w5mMKJkZ.d.ts.map +0 -1
- package/dist/command-Bgd-yIwv.cjs +0 -25
- package/dist/command-Bgd-yIwv.cjs.map +0 -1
- package/dist/command-D-P2Pc3J.js +0 -20
- package/dist/command-D-P2Pc3J.js.map +0 -1
- package/dist/runner-B38UBqhv.cjs.map +0 -1
- package/dist/runner-CUN50BqK.js.map +0 -1
- package/dist/schema-extractor-1YXqFSDT.js.map +0 -1
- package/dist/schema-extractor-B9D3Rf22.cjs.map +0 -1
- package/dist/schema-extractor-CXeUTW_Z.d.cts.map +0 -1
- package/dist/schema-extractor-Cl_D04BX.d.ts.map +0 -1
package/dist/docs/index.d.cts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "../arg-registry-B4a4Fj7f.cjs";
|
|
2
|
+
import { n as ResolvedFieldMeta, p as Example, s as AnyCommand, t as ExtractedFields } from "../schema-extractor-DyfK21m_.cjs";
|
|
2
3
|
import { z } from "zod";
|
|
3
4
|
import * as fs from "node:fs";
|
|
4
5
|
|
|
@@ -11,7 +12,53 @@ import * as fs from "node:fs";
|
|
|
11
12
|
*/
|
|
12
13
|
declare function resolveLazyCommand(cmd: AnyCommand | (() => Promise<AnyCommand>)): Promise<AnyCommand>;
|
|
13
14
|
//#endregion
|
|
15
|
+
//#region src/docs/render-args.d.ts
|
|
16
|
+
/**
|
|
17
|
+
* Args shape type (Record of string keys to Zod schemas)
|
|
18
|
+
* This matches the typical structure of `commonArgs`, `workspaceArgs`, etc.
|
|
19
|
+
*/
|
|
20
|
+
type ArgsShape = Record<string, z.ZodType>;
|
|
21
|
+
/**
|
|
22
|
+
* Options for rendering args table
|
|
23
|
+
*/
|
|
24
|
+
type ArgsTableOptions = {
|
|
25
|
+
/** Columns to include in the table (default: all columns) */columns?: ("option" | "alias" | "description" | "required" | "default" | "env")[];
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Render args definition as a markdown options table
|
|
29
|
+
*
|
|
30
|
+
* This function takes raw args definitions (like `commonArgs`) and
|
|
31
|
+
* renders them as a markdown table suitable for documentation.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* import { renderArgsTable } from "politty/docs";
|
|
35
|
+
* import { commonArgs, workspaceArgs } from "./args";
|
|
36
|
+
*
|
|
37
|
+
* const table = renderArgsTable({
|
|
38
|
+
* ...commonArgs,
|
|
39
|
+
* ...workspaceArgs,
|
|
40
|
+
* });
|
|
41
|
+
* // | Option | Alias | Description | Default |
|
|
42
|
+
* // |--------|-------|-------------|---------|
|
|
43
|
+
* // | `--env-file <ENV_FILE>` | `-e` | Path to environment file | - |
|
|
44
|
+
* // ...
|
|
45
|
+
*
|
|
46
|
+
* @param args - Args shape (Record of string keys to Zod schemas with arg() metadata)
|
|
47
|
+
* @param options - Rendering options
|
|
48
|
+
* @returns Rendered markdown table string
|
|
49
|
+
*/
|
|
50
|
+
declare function renderArgsTable(args: ArgsShape, options?: ArgsTableOptions): string;
|
|
51
|
+
//#endregion
|
|
14
52
|
//#region src/docs/types.d.ts
|
|
53
|
+
/** Heading level for markdown headings (1-6) */
|
|
54
|
+
type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
55
|
+
/**
|
|
56
|
+
* Options for rendering command index
|
|
57
|
+
*/
|
|
58
|
+
type CommandIndexOptions = {
|
|
59
|
+
/** Base heading level (default: 3, which renders as ###) */headingLevel?: HeadingLevel; /** Only include leaf commands (commands without subcommands). Default: true */
|
|
60
|
+
leafOnly?: boolean;
|
|
61
|
+
};
|
|
15
62
|
/**
|
|
16
63
|
* Command information for rendering
|
|
17
64
|
*/
|
|
@@ -214,7 +261,7 @@ type SimpleRenderFunction = (context: SimpleRenderContext) => string;
|
|
|
214
261
|
*/
|
|
215
262
|
interface DefaultRendererOptions {
|
|
216
263
|
/** Heading level (default: 1) */
|
|
217
|
-
headingLevel?:
|
|
264
|
+
headingLevel?: HeadingLevel;
|
|
218
265
|
/** Option display style */
|
|
219
266
|
optionStyle?: "table" | "list";
|
|
220
267
|
/** Generate anchor links to subcommands */
|
|
@@ -238,6 +285,26 @@ interface DefaultRendererOptions {
|
|
|
238
285
|
/** Custom renderer for examples section */
|
|
239
286
|
renderExamples?: ExamplesRenderFunction;
|
|
240
287
|
}
|
|
288
|
+
/**
|
|
289
|
+
* Root document configuration
|
|
290
|
+
* The root document contains global options tables and command index sections.
|
|
291
|
+
*/
|
|
292
|
+
interface RootDocConfig {
|
|
293
|
+
/** Output file path */
|
|
294
|
+
path: string;
|
|
295
|
+
/**
|
|
296
|
+
* Global options configuration.
|
|
297
|
+
* ArgsShape directly, or { args, options } for render options.
|
|
298
|
+
*/
|
|
299
|
+
globalOptions?: ArgsShape | {
|
|
300
|
+
args: ArgsShape;
|
|
301
|
+
options?: ArgsTableOptions;
|
|
302
|
+
};
|
|
303
|
+
/** Heading level for the file header (default: 1) */
|
|
304
|
+
headingLevel?: HeadingLevel;
|
|
305
|
+
/** Index section rendering options */
|
|
306
|
+
index?: CommandIndexOptions;
|
|
307
|
+
}
|
|
241
308
|
/**
|
|
242
309
|
* Per-file configuration with custom renderer
|
|
243
310
|
*/
|
|
@@ -270,6 +337,12 @@ type FileMapping = Record<string, string[] | FileConfig>;
|
|
|
270
337
|
interface GenerateDocConfig {
|
|
271
338
|
/** Command to generate documentation for */
|
|
272
339
|
command: AnyCommand;
|
|
340
|
+
/**
|
|
341
|
+
* Root document configuration.
|
|
342
|
+
* The root document contains global options tables and command index sections.
|
|
343
|
+
* Title and description are derived from `command.name` and `command.description`.
|
|
344
|
+
*/
|
|
345
|
+
rootDoc?: RootDocConfig;
|
|
273
346
|
/** File output configuration (command path -> file mapping) */
|
|
274
347
|
files: FileMapping;
|
|
275
348
|
/** Command paths to ignore (including their subcommands) */
|
|
@@ -324,6 +397,32 @@ declare function commandStartMarker(commandPath: string): string;
|
|
|
324
397
|
* Generate end marker for a command section
|
|
325
398
|
*/
|
|
326
399
|
declare function commandEndMarker(commandPath: string): string;
|
|
400
|
+
/**
|
|
401
|
+
* Marker prefix for global options sections in generated documentation
|
|
402
|
+
* Format: <!-- politty:global-options:start --> ... <!-- politty:global-options:end -->
|
|
403
|
+
*/
|
|
404
|
+
declare const GLOBAL_OPTIONS_MARKER_PREFIX = "politty:global-options";
|
|
405
|
+
/**
|
|
406
|
+
* Generate start marker for a global options section
|
|
407
|
+
*/
|
|
408
|
+
declare function globalOptionsStartMarker(): string;
|
|
409
|
+
/**
|
|
410
|
+
* Generate end marker for a global options section
|
|
411
|
+
*/
|
|
412
|
+
declare function globalOptionsEndMarker(): string;
|
|
413
|
+
/**
|
|
414
|
+
* Marker prefix for index sections in generated documentation
|
|
415
|
+
* Format: <!-- politty:index:start --> ... <!-- politty:index:end -->
|
|
416
|
+
*/
|
|
417
|
+
declare const INDEX_MARKER_PREFIX = "politty:index";
|
|
418
|
+
/**
|
|
419
|
+
* Generate start marker for an index section
|
|
420
|
+
*/
|
|
421
|
+
declare function indexStartMarker(): string;
|
|
422
|
+
/**
|
|
423
|
+
* Generate end marker for an index section
|
|
424
|
+
*/
|
|
425
|
+
declare function indexEndMarker(): string;
|
|
327
426
|
//#endregion
|
|
328
427
|
//#region src/docs/default-renderers.d.ts
|
|
329
428
|
/**
|
|
@@ -492,43 +591,6 @@ declare function assertDocMatch(config: GenerateDocConfig): Promise<void>;
|
|
|
492
591
|
*/
|
|
493
592
|
declare function initDocFile(config: Pick<GenerateDocConfig, "files"> | string, fileSystem?: DeleteFileFs): void;
|
|
494
593
|
//#endregion
|
|
495
|
-
//#region src/docs/render-args.d.ts
|
|
496
|
-
/**
|
|
497
|
-
* Args shape type (Record of string keys to Zod schemas)
|
|
498
|
-
* This matches the typical structure of `commonArgs`, `workspaceArgs`, etc.
|
|
499
|
-
*/
|
|
500
|
-
type ArgsShape = Record<string, z.ZodType>;
|
|
501
|
-
/**
|
|
502
|
-
* Options for rendering args table
|
|
503
|
-
*/
|
|
504
|
-
type ArgsTableOptions = {
|
|
505
|
-
/** Columns to include in the table (default: all columns) */columns?: ("option" | "alias" | "description" | "required" | "default" | "env")[];
|
|
506
|
-
};
|
|
507
|
-
/**
|
|
508
|
-
* Render args definition as a markdown options table
|
|
509
|
-
*
|
|
510
|
-
* This function takes raw args definitions (like `commonArgs`) and
|
|
511
|
-
* renders them as a markdown table suitable for documentation.
|
|
512
|
-
*
|
|
513
|
-
* @example
|
|
514
|
-
* import { renderArgsTable } from "politty/docs";
|
|
515
|
-
* import { commonArgs, workspaceArgs } from "./args";
|
|
516
|
-
*
|
|
517
|
-
* const table = renderArgsTable({
|
|
518
|
-
* ...commonArgs,
|
|
519
|
-
* ...workspaceArgs,
|
|
520
|
-
* });
|
|
521
|
-
* // | Option | Alias | Description | Default |
|
|
522
|
-
* // |--------|-------|-------------|---------|
|
|
523
|
-
* // | `--env-file <ENV_FILE>` | `-e` | Path to environment file | - |
|
|
524
|
-
* // ...
|
|
525
|
-
*
|
|
526
|
-
* @param args - Args shape (Record of string keys to Zod schemas with arg() metadata)
|
|
527
|
-
* @param options - Rendering options
|
|
528
|
-
* @returns Rendered markdown table string
|
|
529
|
-
*/
|
|
530
|
-
declare function renderArgsTable(args: ArgsShape, options?: ArgsTableOptions): string;
|
|
531
|
-
//#endregion
|
|
532
594
|
//#region src/docs/render-index.d.ts
|
|
533
595
|
/**
|
|
534
596
|
* Configuration for a command category
|
|
@@ -539,13 +601,6 @@ type CommandCategory = {
|
|
|
539
601
|
commands: string[]; /** Path to documentation file for links (e.g., "./cli/application.md") */
|
|
540
602
|
docPath: string;
|
|
541
603
|
};
|
|
542
|
-
/**
|
|
543
|
-
* Options for rendering command index
|
|
544
|
-
*/
|
|
545
|
-
type CommandIndexOptions = {
|
|
546
|
-
/** Base heading level (default: 3, which renders as ###) */headingLevel?: 1 | 2 | 3 | 4 | 5 | 6; /** Only include leaf commands (commands without subcommands). Default: true */
|
|
547
|
-
leafOnly?: boolean;
|
|
548
|
-
};
|
|
549
604
|
/**
|
|
550
605
|
* Render command index from categories
|
|
551
606
|
*
|
|
@@ -578,5 +633,5 @@ type CommandIndexOptions = {
|
|
|
578
633
|
*/
|
|
579
634
|
declare function renderCommandIndex(command: AnyCommand, categories: CommandCategory[], options?: CommandIndexOptions): Promise<string>;
|
|
580
635
|
//#endregion
|
|
581
|
-
export { type ArgsShape, type ArgsTableOptions, type ArgumentsRenderContext, type ArgumentsRenderFunction, COMMAND_MARKER_PREFIX, type CommandCategory, type CommandIndexOptions, type CommandInfo, type DefaultRendererOptions, type DeleteFileFs, type ExampleCommandConfig, type ExampleConfig, type ExampleExecutionResult, type ExamplesRenderContext, type ExamplesRenderFunction, type ExamplesRenderOptions, type FileConfig, type FileMapping, type FormatterFunction, type GenerateDocConfig, type GenerateDocResult, type OptionsRenderContext, type OptionsRenderFunction, type RenderContentOptions, type RenderFunction, type SectionRenderFunction, type SimpleRenderContext, type SimpleRenderFunction, type SubCommandInfo, type SubcommandsRenderContext, type SubcommandsRenderFunction, type SubcommandsRenderOptions, UPDATE_GOLDEN_ENV, assertDocMatch, buildCommandInfo, collectAllCommands, commandEndMarker, commandStartMarker, compareWithExisting, createCommandRenderer, defaultRenderers, executeExamples, formatDiff, generateDoc, initDocFile, renderArgsTable, renderArgumentsList, renderArgumentsListFromArray, renderArgumentsTable, renderArgumentsTableFromArray, renderCommandIndex, renderExamplesDefault, renderOptionsList, renderOptionsListFromArray, renderOptionsTable, renderOptionsTableFromArray, renderSubcommandsTable, renderSubcommandsTableFromArray, renderUsage, resolveLazyCommand, writeFile };
|
|
636
|
+
export { type ArgsShape, type ArgsTableOptions, type ArgumentsRenderContext, type ArgumentsRenderFunction, COMMAND_MARKER_PREFIX, type CommandCategory, type CommandIndexOptions, type CommandInfo, type DefaultRendererOptions, type DeleteFileFs, type ExampleCommandConfig, type ExampleConfig, type ExampleExecutionResult, type ExamplesRenderContext, type ExamplesRenderFunction, type ExamplesRenderOptions, type FileConfig, type FileMapping, type FormatterFunction, GLOBAL_OPTIONS_MARKER_PREFIX, type GenerateDocConfig, type GenerateDocResult, type HeadingLevel, INDEX_MARKER_PREFIX, type OptionsRenderContext, type OptionsRenderFunction, type RenderContentOptions, type RenderFunction, type RootDocConfig, type SectionRenderFunction, type SimpleRenderContext, type SimpleRenderFunction, type SubCommandInfo, type SubcommandsRenderContext, type SubcommandsRenderFunction, type SubcommandsRenderOptions, UPDATE_GOLDEN_ENV, assertDocMatch, buildCommandInfo, collectAllCommands, commandEndMarker, commandStartMarker, compareWithExisting, createCommandRenderer, defaultRenderers, executeExamples, formatDiff, generateDoc, globalOptionsEndMarker, globalOptionsStartMarker, indexEndMarker, indexStartMarker, initDocFile, renderArgsTable, renderArgumentsList, renderArgumentsListFromArray, renderArgumentsTable, renderArgumentsTableFromArray, renderCommandIndex, renderExamplesDefault, renderOptionsList, renderOptionsListFromArray, renderOptionsTable, renderOptionsTableFromArray, renderSubcommandsTable, renderSubcommandsTableFromArray, renderUsage, resolveLazyCommand, writeFile };
|
|
582
637
|
//# sourceMappingURL=index.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/executor/subcommand-router.ts","../../src/docs/types.ts","../../src/docs/default-renderers.ts","../../src/docs/doc-comparator.ts","../../src/docs/doc-generator.ts","../../src/docs/example-executor.ts","../../src/docs/golden-test.ts","../../src/docs/render-
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/executor/subcommand-router.ts","../../src/docs/render-args.ts","../../src/docs/types.ts","../../src/docs/default-renderers.ts","../../src/docs/doc-comparator.ts","../../src/docs/doc-generator.ts","../../src/docs/example-executor.ts","../../src/docs/golden-test.ts","../../src/docs/render-index.ts"],"mappings":";;;;;;;;;;;AAQA;iBAAsB,kBAAA,CACpB,GAAA,EAAK,UAAA,UAAoB,OAAA,CAAQ,UAAA,KAChC,OAAA,CAAQ,UAAA;;;;;;;KCFC,SAAA,GAAY,MAAA,SAAe,CAAA,CAAE,OAAA;ADAzC;;;AAAA,KCKY,gBAAA;EDJuB,6DCMjC,OAAA;AAAA;;;;;;;;;;;;;;;AAPF;;;;;;;;;iBA8CgB,eAAA,CAAgB,IAAA,EAAM,SAAA,EAAW,OAAA,GAAU,gBAAA;;;;KCjD/C,YAAA;;AFGZ;;KEEY,mBAAA;EFDL,4DEGL,YAAA,GAAe,YAAA,EFHU;EEKzB,QAAA;AAAA;;;;UAMe,WAAA;EFXkB;EEajC,IAAA;EFZC;EEcD,WAAA;EFdmB;EEgBnB,eAAA;;EAEA,WAAA;;EAEA,KAAA;EDtBmB;ECwBnB,cAAA,EAAgB,iBAAA;EDxBY;EC0B5B,OAAA,EAAS,iBAAA;ED1B4B;EC4BrC,WAAA,EAAa,cAAA;ED5BiC;EC8B9C,SAAA,EAAW,eAAA;EDzBD;EC2BV,OAAA,EAAS,UAAA;;EAET,KAAA;ED3BO;EC6BP,QAAA;EDU6B;ECR7B,OAAA,GAAU,MAAA;EDQ+D;ECNzE,QAAA,GAAW,OAAA;EDMmB;ECJ9B,cAAA,GAAiB,sBAAA;AAAA;;;;UAMF,cAAA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AA,iBOqiDsB,cAAA,CAAe,MAAA,EAAQ,iBAAA,GAAoB,OAAA;;;;;;;;iBA6BjD,WAAA,CACd,MAAA,EAAQ,IAAA,CAAK,iBAAA,qBACb,UAAA,GAAa,YAAA;;;;;;KCvjDH,eAAA;ERbU,oDQepB,KAAA;EAEA,WAAA,URhBiC;EQkBjC,QAAA,YRjBS;EQmBT,OAAA;AAAA;;;;;;;;;;;;APrBF;;;;;;;;;AAKA;;;;;AAyCA;;;;;iBOuGsB,kBAAA,CACpB,OAAA,EAAS,UAAA,EACT,UAAA,EAAY,eAAA,IACZ,OAAA,GAAU,mBAAA,GACT,OAAA"}
|
package/dist/docs/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "../arg-registry-C3GP-5C9.js";
|
|
2
|
+
import { n as ResolvedFieldMeta, p as Example, s as AnyCommand, t as ExtractedFields } from "../schema-extractor-CHiBRT39.js";
|
|
2
3
|
import { z } from "zod";
|
|
3
4
|
import * as fs from "node:fs";
|
|
4
5
|
|
|
@@ -11,7 +12,53 @@ import * as fs from "node:fs";
|
|
|
11
12
|
*/
|
|
12
13
|
declare function resolveLazyCommand(cmd: AnyCommand | (() => Promise<AnyCommand>)): Promise<AnyCommand>;
|
|
13
14
|
//#endregion
|
|
15
|
+
//#region src/docs/render-args.d.ts
|
|
16
|
+
/**
|
|
17
|
+
* Args shape type (Record of string keys to Zod schemas)
|
|
18
|
+
* This matches the typical structure of `commonArgs`, `workspaceArgs`, etc.
|
|
19
|
+
*/
|
|
20
|
+
type ArgsShape = Record<string, z.ZodType>;
|
|
21
|
+
/**
|
|
22
|
+
* Options for rendering args table
|
|
23
|
+
*/
|
|
24
|
+
type ArgsTableOptions = {
|
|
25
|
+
/** Columns to include in the table (default: all columns) */columns?: ("option" | "alias" | "description" | "required" | "default" | "env")[];
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Render args definition as a markdown options table
|
|
29
|
+
*
|
|
30
|
+
* This function takes raw args definitions (like `commonArgs`) and
|
|
31
|
+
* renders them as a markdown table suitable for documentation.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* import { renderArgsTable } from "politty/docs";
|
|
35
|
+
* import { commonArgs, workspaceArgs } from "./args";
|
|
36
|
+
*
|
|
37
|
+
* const table = renderArgsTable({
|
|
38
|
+
* ...commonArgs,
|
|
39
|
+
* ...workspaceArgs,
|
|
40
|
+
* });
|
|
41
|
+
* // | Option | Alias | Description | Default |
|
|
42
|
+
* // |--------|-------|-------------|---------|
|
|
43
|
+
* // | `--env-file <ENV_FILE>` | `-e` | Path to environment file | - |
|
|
44
|
+
* // ...
|
|
45
|
+
*
|
|
46
|
+
* @param args - Args shape (Record of string keys to Zod schemas with arg() metadata)
|
|
47
|
+
* @param options - Rendering options
|
|
48
|
+
* @returns Rendered markdown table string
|
|
49
|
+
*/
|
|
50
|
+
declare function renderArgsTable(args: ArgsShape, options?: ArgsTableOptions): string;
|
|
51
|
+
//#endregion
|
|
14
52
|
//#region src/docs/types.d.ts
|
|
53
|
+
/** Heading level for markdown headings (1-6) */
|
|
54
|
+
type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
55
|
+
/**
|
|
56
|
+
* Options for rendering command index
|
|
57
|
+
*/
|
|
58
|
+
type CommandIndexOptions = {
|
|
59
|
+
/** Base heading level (default: 3, which renders as ###) */headingLevel?: HeadingLevel; /** Only include leaf commands (commands without subcommands). Default: true */
|
|
60
|
+
leafOnly?: boolean;
|
|
61
|
+
};
|
|
15
62
|
/**
|
|
16
63
|
* Command information for rendering
|
|
17
64
|
*/
|
|
@@ -214,7 +261,7 @@ type SimpleRenderFunction = (context: SimpleRenderContext) => string;
|
|
|
214
261
|
*/
|
|
215
262
|
interface DefaultRendererOptions {
|
|
216
263
|
/** Heading level (default: 1) */
|
|
217
|
-
headingLevel?:
|
|
264
|
+
headingLevel?: HeadingLevel;
|
|
218
265
|
/** Option display style */
|
|
219
266
|
optionStyle?: "table" | "list";
|
|
220
267
|
/** Generate anchor links to subcommands */
|
|
@@ -238,6 +285,26 @@ interface DefaultRendererOptions {
|
|
|
238
285
|
/** Custom renderer for examples section */
|
|
239
286
|
renderExamples?: ExamplesRenderFunction;
|
|
240
287
|
}
|
|
288
|
+
/**
|
|
289
|
+
* Root document configuration
|
|
290
|
+
* The root document contains global options tables and command index sections.
|
|
291
|
+
*/
|
|
292
|
+
interface RootDocConfig {
|
|
293
|
+
/** Output file path */
|
|
294
|
+
path: string;
|
|
295
|
+
/**
|
|
296
|
+
* Global options configuration.
|
|
297
|
+
* ArgsShape directly, or { args, options } for render options.
|
|
298
|
+
*/
|
|
299
|
+
globalOptions?: ArgsShape | {
|
|
300
|
+
args: ArgsShape;
|
|
301
|
+
options?: ArgsTableOptions;
|
|
302
|
+
};
|
|
303
|
+
/** Heading level for the file header (default: 1) */
|
|
304
|
+
headingLevel?: HeadingLevel;
|
|
305
|
+
/** Index section rendering options */
|
|
306
|
+
index?: CommandIndexOptions;
|
|
307
|
+
}
|
|
241
308
|
/**
|
|
242
309
|
* Per-file configuration with custom renderer
|
|
243
310
|
*/
|
|
@@ -270,6 +337,12 @@ type FileMapping = Record<string, string[] | FileConfig>;
|
|
|
270
337
|
interface GenerateDocConfig {
|
|
271
338
|
/** Command to generate documentation for */
|
|
272
339
|
command: AnyCommand;
|
|
340
|
+
/**
|
|
341
|
+
* Root document configuration.
|
|
342
|
+
* The root document contains global options tables and command index sections.
|
|
343
|
+
* Title and description are derived from `command.name` and `command.description`.
|
|
344
|
+
*/
|
|
345
|
+
rootDoc?: RootDocConfig;
|
|
273
346
|
/** File output configuration (command path -> file mapping) */
|
|
274
347
|
files: FileMapping;
|
|
275
348
|
/** Command paths to ignore (including their subcommands) */
|
|
@@ -324,6 +397,32 @@ declare function commandStartMarker(commandPath: string): string;
|
|
|
324
397
|
* Generate end marker for a command section
|
|
325
398
|
*/
|
|
326
399
|
declare function commandEndMarker(commandPath: string): string;
|
|
400
|
+
/**
|
|
401
|
+
* Marker prefix for global options sections in generated documentation
|
|
402
|
+
* Format: <!-- politty:global-options:start --> ... <!-- politty:global-options:end -->
|
|
403
|
+
*/
|
|
404
|
+
declare const GLOBAL_OPTIONS_MARKER_PREFIX = "politty:global-options";
|
|
405
|
+
/**
|
|
406
|
+
* Generate start marker for a global options section
|
|
407
|
+
*/
|
|
408
|
+
declare function globalOptionsStartMarker(): string;
|
|
409
|
+
/**
|
|
410
|
+
* Generate end marker for a global options section
|
|
411
|
+
*/
|
|
412
|
+
declare function globalOptionsEndMarker(): string;
|
|
413
|
+
/**
|
|
414
|
+
* Marker prefix for index sections in generated documentation
|
|
415
|
+
* Format: <!-- politty:index:start --> ... <!-- politty:index:end -->
|
|
416
|
+
*/
|
|
417
|
+
declare const INDEX_MARKER_PREFIX = "politty:index";
|
|
418
|
+
/**
|
|
419
|
+
* Generate start marker for an index section
|
|
420
|
+
*/
|
|
421
|
+
declare function indexStartMarker(): string;
|
|
422
|
+
/**
|
|
423
|
+
* Generate end marker for an index section
|
|
424
|
+
*/
|
|
425
|
+
declare function indexEndMarker(): string;
|
|
327
426
|
//#endregion
|
|
328
427
|
//#region src/docs/default-renderers.d.ts
|
|
329
428
|
/**
|
|
@@ -492,43 +591,6 @@ declare function assertDocMatch(config: GenerateDocConfig): Promise<void>;
|
|
|
492
591
|
*/
|
|
493
592
|
declare function initDocFile(config: Pick<GenerateDocConfig, "files"> | string, fileSystem?: DeleteFileFs): void;
|
|
494
593
|
//#endregion
|
|
495
|
-
//#region src/docs/render-args.d.ts
|
|
496
|
-
/**
|
|
497
|
-
* Args shape type (Record of string keys to Zod schemas)
|
|
498
|
-
* This matches the typical structure of `commonArgs`, `workspaceArgs`, etc.
|
|
499
|
-
*/
|
|
500
|
-
type ArgsShape = Record<string, z.ZodType>;
|
|
501
|
-
/**
|
|
502
|
-
* Options for rendering args table
|
|
503
|
-
*/
|
|
504
|
-
type ArgsTableOptions = {
|
|
505
|
-
/** Columns to include in the table (default: all columns) */columns?: ("option" | "alias" | "description" | "required" | "default" | "env")[];
|
|
506
|
-
};
|
|
507
|
-
/**
|
|
508
|
-
* Render args definition as a markdown options table
|
|
509
|
-
*
|
|
510
|
-
* This function takes raw args definitions (like `commonArgs`) and
|
|
511
|
-
* renders them as a markdown table suitable for documentation.
|
|
512
|
-
*
|
|
513
|
-
* @example
|
|
514
|
-
* import { renderArgsTable } from "politty/docs";
|
|
515
|
-
* import { commonArgs, workspaceArgs } from "./args";
|
|
516
|
-
*
|
|
517
|
-
* const table = renderArgsTable({
|
|
518
|
-
* ...commonArgs,
|
|
519
|
-
* ...workspaceArgs,
|
|
520
|
-
* });
|
|
521
|
-
* // | Option | Alias | Description | Default |
|
|
522
|
-
* // |--------|-------|-------------|---------|
|
|
523
|
-
* // | `--env-file <ENV_FILE>` | `-e` | Path to environment file | - |
|
|
524
|
-
* // ...
|
|
525
|
-
*
|
|
526
|
-
* @param args - Args shape (Record of string keys to Zod schemas with arg() metadata)
|
|
527
|
-
* @param options - Rendering options
|
|
528
|
-
* @returns Rendered markdown table string
|
|
529
|
-
*/
|
|
530
|
-
declare function renderArgsTable(args: ArgsShape, options?: ArgsTableOptions): string;
|
|
531
|
-
//#endregion
|
|
532
594
|
//#region src/docs/render-index.d.ts
|
|
533
595
|
/**
|
|
534
596
|
* Configuration for a command category
|
|
@@ -539,13 +601,6 @@ type CommandCategory = {
|
|
|
539
601
|
commands: string[]; /** Path to documentation file for links (e.g., "./cli/application.md") */
|
|
540
602
|
docPath: string;
|
|
541
603
|
};
|
|
542
|
-
/**
|
|
543
|
-
* Options for rendering command index
|
|
544
|
-
*/
|
|
545
|
-
type CommandIndexOptions = {
|
|
546
|
-
/** Base heading level (default: 3, which renders as ###) */headingLevel?: 1 | 2 | 3 | 4 | 5 | 6; /** Only include leaf commands (commands without subcommands). Default: true */
|
|
547
|
-
leafOnly?: boolean;
|
|
548
|
-
};
|
|
549
604
|
/**
|
|
550
605
|
* Render command index from categories
|
|
551
606
|
*
|
|
@@ -578,5 +633,5 @@ type CommandIndexOptions = {
|
|
|
578
633
|
*/
|
|
579
634
|
declare function renderCommandIndex(command: AnyCommand, categories: CommandCategory[], options?: CommandIndexOptions): Promise<string>;
|
|
580
635
|
//#endregion
|
|
581
|
-
export { type ArgsShape, type ArgsTableOptions, type ArgumentsRenderContext, type ArgumentsRenderFunction, COMMAND_MARKER_PREFIX, type CommandCategory, type CommandIndexOptions, type CommandInfo, type DefaultRendererOptions, type DeleteFileFs, type ExampleCommandConfig, type ExampleConfig, type ExampleExecutionResult, type ExamplesRenderContext, type ExamplesRenderFunction, type ExamplesRenderOptions, type FileConfig, type FileMapping, type FormatterFunction, type GenerateDocConfig, type GenerateDocResult, type OptionsRenderContext, type OptionsRenderFunction, type RenderContentOptions, type RenderFunction, type SectionRenderFunction, type SimpleRenderContext, type SimpleRenderFunction, type SubCommandInfo, type SubcommandsRenderContext, type SubcommandsRenderFunction, type SubcommandsRenderOptions, UPDATE_GOLDEN_ENV, assertDocMatch, buildCommandInfo, collectAllCommands, commandEndMarker, commandStartMarker, compareWithExisting, createCommandRenderer, defaultRenderers, executeExamples, formatDiff, generateDoc, initDocFile, renderArgsTable, renderArgumentsList, renderArgumentsListFromArray, renderArgumentsTable, renderArgumentsTableFromArray, renderCommandIndex, renderExamplesDefault, renderOptionsList, renderOptionsListFromArray, renderOptionsTable, renderOptionsTableFromArray, renderSubcommandsTable, renderSubcommandsTableFromArray, renderUsage, resolveLazyCommand, writeFile };
|
|
636
|
+
export { type ArgsShape, type ArgsTableOptions, type ArgumentsRenderContext, type ArgumentsRenderFunction, COMMAND_MARKER_PREFIX, type CommandCategory, type CommandIndexOptions, type CommandInfo, type DefaultRendererOptions, type DeleteFileFs, type ExampleCommandConfig, type ExampleConfig, type ExampleExecutionResult, type ExamplesRenderContext, type ExamplesRenderFunction, type ExamplesRenderOptions, type FileConfig, type FileMapping, type FormatterFunction, GLOBAL_OPTIONS_MARKER_PREFIX, type GenerateDocConfig, type GenerateDocResult, type HeadingLevel, INDEX_MARKER_PREFIX, type OptionsRenderContext, type OptionsRenderFunction, type RenderContentOptions, type RenderFunction, type RootDocConfig, type SectionRenderFunction, type SimpleRenderContext, type SimpleRenderFunction, type SubCommandInfo, type SubcommandsRenderContext, type SubcommandsRenderFunction, type SubcommandsRenderOptions, UPDATE_GOLDEN_ENV, assertDocMatch, buildCommandInfo, collectAllCommands, commandEndMarker, commandStartMarker, compareWithExisting, createCommandRenderer, defaultRenderers, executeExamples, formatDiff, generateDoc, globalOptionsEndMarker, globalOptionsStartMarker, indexEndMarker, indexStartMarker, initDocFile, renderArgsTable, renderArgumentsList, renderArgumentsListFromArray, renderArgumentsTable, renderArgumentsTableFromArray, renderCommandIndex, renderExamplesDefault, renderOptionsList, renderOptionsListFromArray, renderOptionsTable, renderOptionsTableFromArray, renderSubcommandsTable, renderSubcommandsTableFromArray, renderUsage, resolveLazyCommand, writeFile };
|
|
582
637
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/docs/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/executor/subcommand-router.ts","../../src/docs/types.ts","../../src/docs/default-renderers.ts","../../src/docs/doc-comparator.ts","../../src/docs/doc-generator.ts","../../src/docs/example-executor.ts","../../src/docs/golden-test.ts","../../src/docs/render-
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/executor/subcommand-router.ts","../../src/docs/render-args.ts","../../src/docs/types.ts","../../src/docs/default-renderers.ts","../../src/docs/doc-comparator.ts","../../src/docs/doc-generator.ts","../../src/docs/example-executor.ts","../../src/docs/golden-test.ts","../../src/docs/render-index.ts"],"mappings":";;;;;;;;;;;AAQA;iBAAsB,kBAAA,CACpB,GAAA,EAAK,UAAA,UAAoB,OAAA,CAAQ,UAAA,KAChC,OAAA,CAAQ,UAAA;;;;;;;KCFC,SAAA,GAAY,MAAA,SAAe,CAAA,CAAE,OAAA;ADAzC;;;AAAA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