fuc-new/doc/node_modules/@vuepress/plugin-git/lib/node/utils/inferGitProvider.d.ts
hellcat 6adbc04d4b 1
2025-10-03 17:17:08 +08:00

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;