/*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ import { type ReleaseVersion, type VersionBumpType } from "@fluid-tools/version-tools"; import type { ReleaseGroup, ReleasePackage } from "../../releaseGroups.js"; import { ReleaseReportBaseCommand, type ReleaseSelectionMode } from "./report.js"; /** * The `release fromTag` command is used to get release information from a git tag. * * This command is used in CI to determine release information when a new release tag is pushed. */ export default class FromTagCommand extends ReleaseReportBaseCommand { static readonly summary = "Determines release information based on a git tag argument."; static readonly description = "This command is used in CI to determine release information when a new release tag is pushed."; static readonly enableJsonFlag = true; static readonly args: { readonly tag: import("@oclif/core/interfaces").Arg>; }; defaultMode: ReleaseSelectionMode; releaseGroupName: ReleaseGroup | undefined; static readonly examples: { description: string; command: string; }[]; run(): Promise<{ packageOrReleaseGroup: ReleaseGroup | ReleasePackage; title: string; tag: string; date?: Date; releaseType: VersionBumpType; version: ReleaseVersion; previousVersion?: ReleaseVersion; previousTag?: string; }>; /** * Parses a git tag string into a release group and a semver version. * @param input - A git tag as a string. * @returns A 3-tuple of the release group, the semver version, and the original tag. */ private parseTag; } //# sourceMappingURL=fromTag.d.ts.map