管理一组Git/Maven项目的工具。
pymvngit的Python项目详细描述
Python Maven Git工具
一个用来管理一组Git/Maven项目的工具。在
语法:
pymvngit [MACRO | FUNCTION] {argument(s)}
示例:
^{pr2}$宏: 一系列Git/Maven命令,在存储库的项目上按顺序运行。在
REPOSITORY: 可以一起管理的Git/Maven项目的集合。在
运行
功能
- 在
start:从当前目录创建存储库。当前文件夹本身以及每个第一级子文件夹都将被分析,如果它是一个Git/Maven项目,那么它将成为这个创建的存储库的一部分。文件夹的名称将用于引用宏中的项目。在
在 - 在
{/str{1)复制存储库的URL{/strong>作为参数传递
- 参数:
在- Repositories.......: (1) -r "https://github/projectA, https://github/projectB" or (2) -f file-name.txt # file with the list of repositories - Local path.........: -p "/home/my/projects" - Branch (optional)..: -b "develop"{cyan} # "branch" is the default value
- 参数:
- 在
listProjects:列出存储库中与当前目录关联的项目部分。在
在 - 在
listcomros:列出配置的宏。在
- 参数:
在- Show more details, print a table for each one of them: -v
- 参数:
宏
- [macro]:要执行的宏的名称。 例如,一些默认宏已经可用。要管理宏:添加、修改或删除,请使用以下命令:
pymvngit editMacros #or only emac for short
宏的结构:
"[INTERNAL-KEY]":{"key":"[NAME-MACRO]","description":"[DESCRIPTION]","executions":[{"tool":"[git OR maven]","command":"[COMMAND]","projects":["NAME-PROJECT","NAME-PROJECT"]},}
宏示例:
"1":{"key":"tag-everyone","description":"Tag all the projects","executions":[{"tool":"git","command":"tag -a $1 -m $2",##Whennoprojectareinformed,alloftherepositoryareused"projects":[]}]},"2":{"key":"commit-tag-customer","description":"Commit everything and tag the CustomerVision and CustomerVisionFeign project","executions":[{"tool":"git","command":"add -A","projects":["customer-view","customer-view-feign"]},{"tool":"git","command":"commit -m $1","projects":["customer-view","customer-view-feign"]},{"tool":"git","command":"tag -a $2 -m $3","projects":["customer-view","customer-view-feign"]}]},"2":{"key":"all-once","description":"Git status, commit, push for commons and clients","executions":[{"tool":"git","command":"status","projects":["commons","client"]},{"tool":"git","command":"add $1","projects":["commons","client"]},{"tool":"git","command":"commit -m $2","projects":["commons","client"]},{"tool":"git","command":"push","projects":["commons","client"]},{"tool":"git","command":"tag -a $3 -m $4","projects":["commons","client"]}]},"3":{"key":"test_tag","description":"Test Tag","executions":[{"tool":"git","command":"tag -a $1 -m $2","projects":["teachstore-commons"]}]}
- 项目
标签: