UNPKG

947 BTypeScriptView Raw
1import { Command, flags } from '@oclif/command';
2import * as Config from '@oclif/config';
3export default class Readme extends Command {
4 static description: string;
5 static flags: flags.Input<any>;
6 run(): Promise<void>;
7 replaceTag(readme: string, tag: string, body: string): string;
8 toc(__: Config.IConfig, readme: string): string;
9 usage(config: Config.IConfig): string;
10 multiCommands(config: Config.IConfig, commands: Config.Command[], dir: string): string;
11 createTopicFile(file: string, config: Config.IConfig, topic: Config.Topic, commands: Config.Command[]): void;
12 commands(config: Config.IConfig, commands: Config.Command[]): string;
13 renderCommand(config: Config.IConfig, c: Config.Command): string;
14 commandCode(config: Config.IConfig, c: Config.Command): string | undefined;
15 private repo;
16 /**
17 * fetches the path to a command
18 */
19 private commandPath;
20 private commandUsage;
21}