2.5.18 • Published 2 years ago
@series-one/toolkit-shell v2.5.18
Toolkit Shell
Git 相关工具集
BACKGROUND
项目管理工具需要调用本地一些命令, 例如: Git
, NPM
等.
该项目主要封装一些便捷的命令执行能力.
INSTALL
# local install
$ yarn add --dev @series-one/toolkit-shell
# global install
$ yarn global add @series-one/toolkit-shell
USAGE
import { execCommand, gitRepoUrl, gitContributors, pmInfo, pmRegistryUrl, pmWorkspaces } from '@series-one/toolkit-shell'
console.log(await gitRepoUrl())
console.log(await gitContributors())
console.log(await pmInfo())
console.log(await pmRegistryUrl())
console.log(await pmWorkspaces())
console.log(await execCommand(`${command} -h`))
CONTRIBUTING
可以通过 Git 对项目进行贡献;
若没有本项目组权限, 项目需要权限申请, 请通过 OA Git 项目权限申请流程进行申请, 用户角色为 Developer