22 lines
593 B
TypeScript
22 lines
593 B
TypeScript
import type { KnownGitProvider } from '../../shared/index.js';
|
|
/**
|
|
* Gets the URL of a Git remote.
|
|
*
|
|
* 获取 Git 远程仓库的 URL
|
|
*
|
|
* @param cwd - The directory where the git commands should be executed.
|
|
*
|
|
* 执行 git 命令的目录
|
|
*/
|
|
export declare const getRemoteUrl: (cwd: string) => string | null;
|
|
/**
|
|
* Infer git provider from remote URL
|
|
*
|
|
* 从远程 URL 推断 Git 提供商
|
|
*
|
|
* @param cwd - The directory where the git commands should be executed
|
|
*
|
|
* 执行 git 命令的目录
|
|
*/
|
|
export declare const inferGitProvider: (cwd: string) => KnownGitProvider | null;
|