long-git-cli
Version:
A CLI tool for Git tag management.
10 lines • 529 B
TypeScript
import type { TagInfo } from '../types';
/** 解析 tag 字符串,提取版本号信息 */
export declare function parseTag(tag: string): TagInfo;
/** 递增版本号,将 build 和 patch 版本号加 1 */
export declare function incrementVersion(tagInfo: TagInfo): TagInfo;
/** 格式化版本信息为 tag 字符串 */
export declare function formatTag(tagInfo: TagInfo): string;
/** 比较两个版本号的大小 */
export declare function compareVersions(a: TagInfo, b: TagInfo): number;
//# sourceMappingURL=tag.d.ts.map