/*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ import { type ReleaseReport } from "../../library/index.js"; import type { ReleaseGroup, ReleasePackage } from "../../releaseGroups.js"; import { ReleaseReportBaseCommand, type ReleaseSelectionMode } from "./report.js"; /** * Prints a list of released versions of a package or release group. Releases are gathered from the git tags in repo * containing the working directory. * * @remarks * Use 'npm view' to list published packages based on the public npm registry. * * The number of results can be limited using the --limit argument. */ export default class ReleaseHistoryCommand extends ReleaseReportBaseCommand { static readonly description = "Prints a list of released versions of a package or release group. Releases are gathered from the git tags in repo containing the working directory.\n\n Use 'npm view' to list published packages based on the public npm registry.\n\n The number of results can be limited using the --limit argument."; static readonly examples: { description: string; command: string; }[]; static readonly flags: { releaseGroup: import("@oclif/core/interfaces").OptionFlag<"client" | "server" | "build-tools" | "gitrest" | "historian" | undefined, import("@oclif/core/interfaces").CustomOptions>; package: import("@oclif/core/interfaces").OptionFlag; limit: import("@oclif/core/interfaces").OptionFlag; }; static readonly enableJsonFlag = true; readonly defaultMode: ReleaseSelectionMode; releaseGroupName: ReleaseGroup | ReleasePackage | undefined; run(): Promise<{ reports: ReleaseReport[]; }>; /** * Generates table data for all versions of a package/release group. */ private generateAllReleasesTable; } //# sourceMappingURL=history.d.ts.map