@adinsure-ops/ops-cli
Version:
Operations CLI for working with AdInsure
29 lines (28 loc) • 1.66 kB
TypeScript
import CommandBase from '../../command.base.js';
import { ChangelogEntry } from '../../types/changelog.types.js';
export default class Generate extends CommandBase<typeof Generate> {
static aliases: string[];
static description: string;
static usage: string;
static examples: string[];
static flags: {
components: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
file: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
force: import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
preview: import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
version: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
'ignore-no-changelogs': import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
};
private readonly _entryTypes;
private readonly _mdFileTypeRegex;
private readonly _changelogTitle;
readChangelogs(dir: string): Promise<ChangelogEntry[]>;
generateLog(entries: ChangelogEntry[], components: string[], headingLevel?: number): Promise<string>;
generateChangelog(version: string, entries: ChangelogEntry[], components: string[], currentContents?: string, date?: string): Promise<string>;
private formatEntry;
private indentMarkdownLines;
private stripChangelogTitle;
private normalizeLineEndings;
private startsWithBlockContent;
run(): Promise<void>;
}