管理一组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"]}]}

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
JavaSpring重定向请求处理程序   SwingJava:拆分字符串并将其放入文本区域的   Java:标记“”上出现语法错误,此标记后面应为表达式   web服务Java RestService从日志文件写入和读取数据   java如何将ArrayList<String>转换为char数组,然后向后打印每个单词?   java SimpleDataFormat解析返回年终日期   加密Java aes解密bytebuffer,包括填充为空字节   java有没有办法从特定的if语句调用变量?   java从更新返回到渲染   spring GRPC Java登录测试   java为什么下面的代码不工作(StringBuffer.toString!=null)   java是一种可行的模式吗?   使用Spring集成测试的JavaOSGi片段   java jCommander为未知和未使用的值引发异常?   在imageView的editText中输入的java图像URL