forked from microsoft/rushstack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApiDocumenterCommandLine.ts
More file actions
28 lines (24 loc) · 944 Bytes
/
ApiDocumenterCommandLine.ts
File metadata and controls
28 lines (24 loc) · 944 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
// See LICENSE in the project root for license information.
import { CommandLineParser } from '@microsoft/ts-command-line';
import { MarkdownAction } from './MarkdownAction';
import { YamlAction } from './YamlAction';
import { GenerateAction } from './GenerateAction';
export class ApiDocumenterCommandLine extends CommandLineParser {
constructor() {
super({
toolFilename: 'api-documenter',
toolDescription: 'Reads *.api.json files produced by api-extractor, '
+ ' and generates API documentation in various output formats.'
});
this._populateActions();
}
protected onDefineParameters(): void { // override
// No parameters
}
private _populateActions(): void {
this.addAction(new MarkdownAction(this));
this.addAction(new YamlAction(this));
this.addAction(new GenerateAction(this));
}
}