UNPKG

long-git-cli

Version:

A CLI tool for Git tag management.

22 lines 801 B
export declare const REMOTE_TYPES: { readonly GITHUB: "github"; readonly BITBUCKET: "bitbucket"; readonly GITLAB: "gitlab"; readonly UNKNOWN: "unknown"; }; export interface RemoteInfo { name: string; url: string; type: typeof REMOTE_TYPES[keyof typeof REMOTE_TYPES]; } /** * 检测远程仓库类型(GitHub、Bitbucket、GitLab 等) * @returns {Promise<RemoteInfo | null>} 远程仓库信息,如果没有配置远程仓库则返回 null */ export declare function detectRemoteType(): Promise<RemoteInfo | null>; /** * 根据远程仓库类型显示特定的提示信息 * @param {RemoteInfo['type']} remoteType - 远程仓库类型 */ export declare function showRemoteSpecificTips(remoteType: RemoteInfo['type']): void; //# sourceMappingURL=git-remote.d.ts.map