t-comm
Version:
专业、稳定、纯粹的工具库
23 lines (22 loc) • 357 B
TypeScript
/**
* 获取所有 git 仓库
*
* @export
* @param {string} root 根路径
* @returns {array} 路径列表
* @example
* ```ts
* getAllGitRepo('/root/yang');
*
* [
* {
* root: '/root',
* origin: 'git@git.address',
* }
* ]
* ```
*/
export declare function getAllGitRepo(root: string): {
root: string;
origin: string;
}[];