UNPKG

1.05 kBTypeScriptView 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: {
6 dir: flags.IOptionFlag<string>;
7 multi: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
8 };
9 run(): Promise<void>;
10 replaceTag(readme: string, tag: string, body: string): string;
11 toc(__: Config.IConfig, readme: string): string;
12 usage(config: Config.IConfig): string;
13 multiCommands(config: Config.IConfig, commands: Config.Command[], dir: string): string;
14 createTopicFile(file: string, config: Config.IConfig, topic: Config.Topic, commands: Config.Command[]): void;
15 commands(config: Config.IConfig, commands: Config.Command[]): string;
16 renderCommand(config: Config.IConfig, c: Config.Command): string;
17 commandCode(config: Config.IConfig, c: Config.Command): string | undefined;
18 private repo;
19 /**
20 * fetches the path to a command
21 */
22 private commandPath;
23 private commandUsage;
24}