politty 0.2.2 → 0.3.1
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/completion/index.cjs +35 -25
- package/dist/completion/index.cjs.map +1 -1
- package/dist/completion/index.d.cts +17 -13
- package/dist/completion/index.d.cts.map +1 -1
- package/dist/completion/index.d.ts +17 -13
- package/dist/completion/index.d.ts.map +1 -1
- package/dist/completion/index.js +35 -25
- package/dist/completion/index.js.map +1 -1
- package/dist/docs/index.cjs +716 -278
- package/dist/docs/index.cjs.map +1 -1
- package/dist/docs/index.d.cts +100 -46
- package/dist/docs/index.d.cts.map +1 -1
- package/dist/docs/index.d.ts +100 -46
- package/dist/docs/index.d.ts.map +1 -1
- package/dist/docs/index.js +711 -279
- package/dist/docs/index.js.map +1 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/runner-B38UBqhv.cjs.map +1 -1
- package/dist/runner-CUN50BqK.js.map +1 -1
- package/package.json +5 -5
package/dist/docs/index.d.cts
CHANGED
|
@@ -11,7 +11,53 @@ import * as fs from "node:fs";
|
|
|
11
11
|
*/
|
|
12
12
|
declare function resolveLazyCommand(cmd: AnyCommand | (() => Promise<AnyCommand>)): Promise<AnyCommand>;
|
|
13
13
|
//#endregion
|
|
14
|
+
//#region src/docs/render-args.d.ts
|
|
15
|
+
/**
|
|
16
|
+
* Args shape type (Record of string keys to Zod schemas)
|
|
17
|
+
* This matches the typical structure of `commonArgs`, `workspaceArgs`, etc.
|
|
18
|
+
*/
|
|
19
|
+
type ArgsShape = Record<string, z.ZodType>;
|
|
20
|
+
/**
|
|
21
|
+
* Options for rendering args table
|
|
22
|
+
*/
|
|
23
|
+
type ArgsTableOptions = {
|
|
24
|
+
/** Columns to include in the table (default: all columns) */columns?: ("option" | "alias" | "description" | "required" | "default" | "env")[];
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Render args definition as a markdown options table
|
|
28
|
+
*
|
|
29
|
+
* This function takes raw args definitions (like `commonArgs`) and
|
|
30
|
+
* renders them as a markdown table suitable for documentation.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* import { renderArgsTable } from "politty/docs";
|
|
34
|
+
* import { commonArgs, workspaceArgs } from "./args";
|
|
35
|
+
*
|
|
36
|
+
* const table = renderArgsTable({
|
|
37
|
+
* ...commonArgs,
|
|
38
|
+
* ...workspaceArgs,
|
|
39
|
+
* });
|
|
40
|
+
* // | Option | Alias | Description | Default |
|
|
41
|
+
* // |--------|-------|-------------|---------|
|
|
42
|
+
* // | `--env-file <ENV_FILE>` | `-e` | Path to environment file | - |
|
|
43
|
+
* // ...
|
|
44
|
+
*
|
|
45
|
+
* @param args - Args shape (Record of string keys to Zod schemas with arg() metadata)
|
|
46
|
+
* @param options - Rendering options
|
|
47
|
+
* @returns Rendered markdown table string
|
|
48
|
+
*/
|
|
49
|
+
declare function renderArgsTable(args: ArgsShape, options?: ArgsTableOptions): string;
|
|
50
|
+
//#endregion
|
|
14
51
|
//#region src/docs/types.d.ts
|
|
52
|
+
/** Heading level for markdown headings (1-6) */
|
|
53
|
+
type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
54
|
+
/**
|
|
55
|
+
* Options for rendering command index
|
|
56
|
+
*/
|
|
57
|
+
type CommandIndexOptions = {
|
|
58
|
+
/** Base heading level (default: 3, which renders as ###) */headingLevel?: HeadingLevel; /** Only include leaf commands (commands without subcommands). Default: true */
|
|
59
|
+
leafOnly?: boolean;
|
|
60
|
+
};
|
|
15
61
|
/**
|
|
16
62
|
* Command information for rendering
|
|
17
63
|
*/
|
|
@@ -214,7 +260,7 @@ type SimpleRenderFunction = (context: SimpleRenderContext) => string;
|
|
|
214
260
|
*/
|
|
215
261
|
interface DefaultRendererOptions {
|
|
216
262
|
/** Heading level (default: 1) */
|
|
217
|
-
headingLevel?:
|
|
263
|
+
headingLevel?: HeadingLevel;
|
|
218
264
|
/** Option display style */
|
|
219
265
|
optionStyle?: "table" | "list";
|
|
220
266
|
/** Generate anchor links to subcommands */
|
|
@@ -238,6 +284,26 @@ interface DefaultRendererOptions {
|
|
|
238
284
|
/** Custom renderer for examples section */
|
|
239
285
|
renderExamples?: ExamplesRenderFunction;
|
|
240
286
|
}
|
|
287
|
+
/**
|
|
288
|
+
* Root document configuration
|
|
289
|
+
* The root document contains global options tables and command index sections.
|
|
290
|
+
*/
|
|
291
|
+
interface RootDocConfig {
|
|
292
|
+
/** Output file path */
|
|
293
|
+
path: string;
|
|
294
|
+
/**
|
|
295
|
+
* Global options configuration.
|
|
296
|
+
* ArgsShape directly, or { args, options } for render options.
|
|
297
|
+
*/
|
|
298
|
+
globalOptions?: ArgsShape | {
|
|
299
|
+
args: ArgsShape;
|
|
300
|
+
options?: ArgsTableOptions;
|
|
301
|
+
};
|
|
302
|
+
/** Heading level for the file header (default: 1) */
|
|
303
|
+
headingLevel?: HeadingLevel;
|
|
304
|
+
/** Index section rendering options */
|
|
305
|
+
index?: CommandIndexOptions;
|
|
306
|
+
}
|
|
241
307
|
/**
|
|
242
308
|
* Per-file configuration with custom renderer
|
|
243
309
|
*/
|
|
@@ -270,6 +336,12 @@ type FileMapping = Record<string, string[] | FileConfig>;
|
|
|
270
336
|
interface GenerateDocConfig {
|
|
271
337
|
/** Command to generate documentation for */
|
|
272
338
|
command: AnyCommand;
|
|
339
|
+
/**
|
|
340
|
+
* Root document configuration.
|
|
341
|
+
* The root document contains global options tables and command index sections.
|
|
342
|
+
* Title and description are derived from `command.name` and `command.description`.
|
|
343
|
+
*/
|
|
344
|
+
rootDoc?: RootDocConfig;
|
|
273
345
|
/** File output configuration (command path -> file mapping) */
|
|
274
346
|
files: FileMapping;
|
|
275
347
|
/** Command paths to ignore (including their subcommands) */
|
|
@@ -324,6 +396,32 @@ declare function commandStartMarker(commandPath: string): string;
|
|
|
324
396
|
* Generate end marker for a command section
|
|
325
397
|
*/
|
|
326
398
|
declare function commandEndMarker(commandPath: string): string;
|
|
399
|
+
/**
|
|
400
|
+
* Marker prefix for global options sections in generated documentation
|
|
401
|
+
* Format: <!-- politty:global-options:start --> ... <!-- politty:global-options:end -->
|
|
402
|
+
*/
|
|
403
|
+
declare const GLOBAL_OPTIONS_MARKER_PREFIX = "politty:global-options";
|
|
404
|
+
/**
|
|
405
|
+
* Generate start marker for a global options section
|
|
406
|
+
*/
|
|
407
|
+
declare function globalOptionsStartMarker(): string;
|
|
408
|
+
/**
|
|
409
|
+
* Generate end marker for a global options section
|
|
410
|
+
*/
|
|
411
|
+
declare function globalOptionsEndMarker(): string;
|
|
412
|
+
/**
|
|
413
|
+
* Marker prefix for index sections in generated documentation
|
|
414
|
+
* Format: <!-- politty:index:start --> ... <!-- politty:index:end -->
|
|
415
|
+
*/
|
|
416
|
+
declare const INDEX_MARKER_PREFIX = "politty:index";
|
|
417
|
+
/**
|
|
418
|
+
* Generate start marker for an index section
|
|
419
|
+
*/
|
|
420
|
+
declare function indexStartMarker(): string;
|
|
421
|
+
/**
|
|
422
|
+
* Generate end marker for an index section
|
|
423
|
+
*/
|
|
424
|
+
declare function indexEndMarker(): string;
|
|
327
425
|
//#endregion
|
|
328
426
|
//#region src/docs/default-renderers.d.ts
|
|
329
427
|
/**
|
|
@@ -492,43 +590,6 @@ declare function assertDocMatch(config: GenerateDocConfig): Promise<void>;
|
|
|
492
590
|
*/
|
|
493
591
|
declare function initDocFile(config: Pick<GenerateDocConfig, "files"> | string, fileSystem?: DeleteFileFs): void;
|
|
494
592
|
//#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
593
|
//#region src/docs/render-index.d.ts
|
|
533
594
|
/**
|
|
534
595
|
* Configuration for a command category
|
|
@@ -539,13 +600,6 @@ type CommandCategory = {
|
|
|
539
600
|
commands: string[]; /** Path to documentation file for links (e.g., "./cli/application.md") */
|
|
540
601
|
docPath: string;
|
|
541
602
|
};
|
|
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
603
|
/**
|
|
550
604
|
* Render command index from categories
|
|
551
605
|
*
|
|
@@ -578,5 +632,5 @@ type CommandIndexOptions = {
|
|
|
578
632
|
*/
|
|
579
633
|
declare function renderCommandIndex(command: AnyCommand, categories: CommandCategory[], options?: CommandIndexOptions): Promise<string>;
|
|
580
634
|
//#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 };
|
|
635
|
+
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
636
|
//# 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;;;;KAK7B,gBAAA;EDJe,6DCMzB,OAAA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C;EIGjC,UAAA;AAAA;;;;iBAMc,mBAAA,CAAoB,gBAAA,UAA0B,QAAA,WAAmB,aAAA;;;;iBA6BjE,UAAA,CAAW,QAAA,UAAkB,MAAA;;;;iBAsE7B,SAAA,CAAU,QAAA,UAAkB,OAAA;;;;UA4B3B,YAAA;EACf,UAAA,SAAmB,EAAA,CAAG,UAAA;EACtB,UAAA,SAAmB,EAAA,CAAG,UAAA;AAAA;;;;;;iBC3IF,gBAAA,CACpB,OAAA,EAAS,UAAA,EACT,QAAA,UACA,WAAA,cACC,OAAA,CAAQ,WAAA;;;;;iBAuCW,kBAAA,CACpB,OAAA,EAAS,UAAA,EACT,QAAA,YACC,OAAA,CAAQ,GAAA,SAAY,WAAA;;;;;;AL9CvB;;;;;;iBMKsB,eAAA,CACpB,QAAA,EAAU,OAAA,IACV,MAAA,EAAQ,oBAAA,EACR,WAAA,EAAa,UAAA,EACb,WAAA,cACC,OAAA,CAAQ,sBAAA;;;;;;iBC0pCW,WAAA,CAAY,MAAA,EAAQ,iBAAA,GAAoB,OAAA,CAAQ,iBAAA;;;;;iBAiYhD,cAAA,CAAe,MAAA,EAAQ,iBAAA,GAAoB,OAAA;;;;;;;;iBA6BjD,WAAA,CACd,MAAA,EAAQ,IAAA,CAAK,iBAAA,qBACb,UAAA,GAAa,YAAA;;;;;;KCvjDH,eAAA;ERb4B,oDQetC,KAAA,URdK;EQgBL,WAAA,URhByB;EQkBzB,QAAA,YRjBC;EQmBD,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
|
@@ -11,7 +11,53 @@ import * as fs from "node:fs";
|
|
|
11
11
|
*/
|
|
12
12
|
declare function resolveLazyCommand(cmd: AnyCommand | (() => Promise<AnyCommand>)): Promise<AnyCommand>;
|
|
13
13
|
//#endregion
|
|
14
|
+
//#region src/docs/render-args.d.ts
|
|
15
|
+
/**
|
|
16
|
+
* Args shape type (Record of string keys to Zod schemas)
|
|
17
|
+
* This matches the typical structure of `commonArgs`, `workspaceArgs`, etc.
|
|
18
|
+
*/
|
|
19
|
+
type ArgsShape = Record<string, z.ZodType>;
|
|
20
|
+
/**
|
|
21
|
+
* Options for rendering args table
|
|
22
|
+
*/
|
|
23
|
+
type ArgsTableOptions = {
|
|
24
|
+
/** Columns to include in the table (default: all columns) */columns?: ("option" | "alias" | "description" | "required" | "default" | "env")[];
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Render args definition as a markdown options table
|
|
28
|
+
*
|
|
29
|
+
* This function takes raw args definitions (like `commonArgs`) and
|
|
30
|
+
* renders them as a markdown table suitable for documentation.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* import { renderArgsTable } from "politty/docs";
|
|
34
|
+
* import { commonArgs, workspaceArgs } from "./args";
|
|
35
|
+
*
|
|
36
|
+
* const table = renderArgsTable({
|
|
37
|
+
* ...commonArgs,
|
|
38
|
+
* ...workspaceArgs,
|
|
39
|
+
* });
|
|
40
|
+
* // | Option | Alias | Description | Default |
|
|
41
|
+
* // |--------|-------|-------------|---------|
|
|
42
|
+
* // | `--env-file <ENV_FILE>` | `-e` | Path to environment file | - |
|
|
43
|
+
* // ...
|
|
44
|
+
*
|
|
45
|
+
* @param args - Args shape (Record of string keys to Zod schemas with arg() metadata)
|
|
46
|
+
* @param options - Rendering options
|
|
47
|
+
* @returns Rendered markdown table string
|
|
48
|
+
*/
|
|
49
|
+
declare function renderArgsTable(args: ArgsShape, options?: ArgsTableOptions): string;
|
|
50
|
+
//#endregion
|
|
14
51
|
//#region src/docs/types.d.ts
|
|
52
|
+
/** Heading level for markdown headings (1-6) */
|
|
53
|
+
type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
54
|
+
/**
|
|
55
|
+
* Options for rendering command index
|
|
56
|
+
*/
|
|
57
|
+
type CommandIndexOptions = {
|
|
58
|
+
/** Base heading level (default: 3, which renders as ###) */headingLevel?: HeadingLevel; /** Only include leaf commands (commands without subcommands). Default: true */
|
|
59
|
+
leafOnly?: boolean;
|
|
60
|
+
};
|
|
15
61
|
/**
|
|
16
62
|
* Command information for rendering
|
|
17
63
|
*/
|
|
@@ -214,7 +260,7 @@ type SimpleRenderFunction = (context: SimpleRenderContext) => string;
|
|
|
214
260
|
*/
|
|
215
261
|
interface DefaultRendererOptions {
|
|
216
262
|
/** Heading level (default: 1) */
|
|
217
|
-
headingLevel?:
|
|
263
|
+
headingLevel?: HeadingLevel;
|
|
218
264
|
/** Option display style */
|
|
219
265
|
optionStyle?: "table" | "list";
|
|
220
266
|
/** Generate anchor links to subcommands */
|
|
@@ -238,6 +284,26 @@ interface DefaultRendererOptions {
|
|
|
238
284
|
/** Custom renderer for examples section */
|
|
239
285
|
renderExamples?: ExamplesRenderFunction;
|
|
240
286
|
}
|
|
287
|
+
/**
|
|
288
|
+
* Root document configuration
|
|
289
|
+
* The root document contains global options tables and command index sections.
|
|
290
|
+
*/
|
|
291
|
+
interface RootDocConfig {
|
|
292
|
+
/** Output file path */
|
|
293
|
+
path: string;
|
|
294
|
+
/**
|
|
295
|
+
* Global options configuration.
|
|
296
|
+
* ArgsShape directly, or { args, options } for render options.
|
|
297
|
+
*/
|
|
298
|
+
globalOptions?: ArgsShape | {
|
|
299
|
+
args: ArgsShape;
|
|
300
|
+
options?: ArgsTableOptions;
|
|
301
|
+
};
|
|
302
|
+
/** Heading level for the file header (default: 1) */
|
|
303
|
+
headingLevel?: HeadingLevel;
|
|
304
|
+
/** Index section rendering options */
|
|
305
|
+
index?: CommandIndexOptions;
|
|
306
|
+
}
|
|
241
307
|
/**
|
|
242
308
|
* Per-file configuration with custom renderer
|
|
243
309
|
*/
|
|
@@ -270,6 +336,12 @@ type FileMapping = Record<string, string[] | FileConfig>;
|
|
|
270
336
|
interface GenerateDocConfig {
|
|
271
337
|
/** Command to generate documentation for */
|
|
272
338
|
command: AnyCommand;
|
|
339
|
+
/**
|
|
340
|
+
* Root document configuration.
|
|
341
|
+
* The root document contains global options tables and command index sections.
|
|
342
|
+
* Title and description are derived from `command.name` and `command.description`.
|
|
343
|
+
*/
|
|
344
|
+
rootDoc?: RootDocConfig;
|
|
273
345
|
/** File output configuration (command path -> file mapping) */
|
|
274
346
|
files: FileMapping;
|
|
275
347
|
/** Command paths to ignore (including their subcommands) */
|
|
@@ -324,6 +396,32 @@ declare function commandStartMarker(commandPath: string): string;
|
|
|
324
396
|
* Generate end marker for a command section
|
|
325
397
|
*/
|
|
326
398
|
declare function commandEndMarker(commandPath: string): string;
|
|
399
|
+
/**
|
|
400
|
+
* Marker prefix for global options sections in generated documentation
|
|
401
|
+
* Format: <!-- politty:global-options:start --> ... <!-- politty:global-options:end -->
|
|
402
|
+
*/
|
|
403
|
+
declare const GLOBAL_OPTIONS_MARKER_PREFIX = "politty:global-options";
|
|
404
|
+
/**
|
|
405
|
+
* Generate start marker for a global options section
|
|
406
|
+
*/
|
|
407
|
+
declare function globalOptionsStartMarker(): string;
|
|
408
|
+
/**
|
|
409
|
+
* Generate end marker for a global options section
|
|
410
|
+
*/
|
|
411
|
+
declare function globalOptionsEndMarker(): string;
|
|
412
|
+
/**
|
|
413
|
+
* Marker prefix for index sections in generated documentation
|
|
414
|
+
* Format: <!-- politty:index:start --> ... <!-- politty:index:end -->
|
|
415
|
+
*/
|
|
416
|
+
declare const INDEX_MARKER_PREFIX = "politty:index";
|
|
417
|
+
/**
|
|
418
|
+
* Generate start marker for an index section
|
|
419
|
+
*/
|
|
420
|
+
declare function indexStartMarker(): string;
|
|
421
|
+
/**
|
|
422
|
+
* Generate end marker for an index section
|
|
423
|
+
*/
|
|
424
|
+
declare function indexEndMarker(): string;
|
|
327
425
|
//#endregion
|
|
328
426
|
//#region src/docs/default-renderers.d.ts
|
|
329
427
|
/**
|
|
@@ -492,43 +590,6 @@ declare function assertDocMatch(config: GenerateDocConfig): Promise<void>;
|
|
|
492
590
|
*/
|
|
493
591
|
declare function initDocFile(config: Pick<GenerateDocConfig, "files"> | string, fileSystem?: DeleteFileFs): void;
|
|
494
592
|
//#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
593
|
//#region src/docs/render-index.d.ts
|
|
533
594
|
/**
|
|
534
595
|
* Configuration for a command category
|
|
@@ -539,13 +600,6 @@ type CommandCategory = {
|
|
|
539
600
|
commands: string[]; /** Path to documentation file for links (e.g., "./cli/application.md") */
|
|
540
601
|
docPath: string;
|
|
541
602
|
};
|
|
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
603
|
/**
|
|
550
604
|
* Render command index from categories
|
|
551
605
|
*
|
|
@@ -578,5 +632,5 @@ type CommandIndexOptions = {
|
|
|
578
632
|
*/
|
|
579
633
|
declare function renderCommandIndex(command: AnyCommand, categories: CommandCategory[], options?: CommandIndexOptions): Promise<string>;
|
|
580
634
|
//#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 };
|
|
635
|
+
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
636
|
//# 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;;;;KAK7B,gBAAA;EDJe,6DCMzB,OAAA;AAAA;;;;;;;;;;;;;;AAPF;;;;;;;;;AAKA;iBAyCgB,eAAA,CAAgB,IAAA,EAAM,SAAA,EAAW,OAAA,GAAU,gBAAA;;;;KCjD/C,YAAA;AFGZ;;;AAAA,KEEY,mBAAA;EFDuB,4DEGjC,YAAA,GAAe,YAAA,EFFN;EEIT,QAAA;AAAA;;;;UAMe,WAAA;EFXf;EEaA,IAAA;EFZS;EEcT,WAAA;EFdmB;EEgBnB,eAAA;;EAEA,WAAA;EDpBU;ECsBV,KAAA;;EAEA,cAAA,EAAgB,iBAAA;EDxBM;EC0BtB,OAAA,EAAS,iBAAA;ED1B8B;EC4BvC,WAAA,EAAa,cAAA;ED5BiC;EC8B9C,SAAA,EAAW,eAAA;EDzBe;EC2B1B,OAAA,EAAS,UAAA;EDzBT;EC2BA,KAAA;EDYc;ECVd,QAAA;;EAEA,OAAA,GAAU,MAAA;EDQ0B;ECNpC,QAAA,GAAW,OAAA;EDM8C;ECJzD,cAAA,GAAiB,sBAAA;AAAA;;;;UAMF,cAAA;EAnDL;EAqDV,IAAA;;EAEA,WAAA;EAvDsB;EAyDtB,QAAA;AAAA;;;;UAMe,sBAAA;EAtDf;EAwDA,GAAA;EAxDQ;EA0DR,IAAA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