Skip to main content

Python Maven Git Tool


Tool to manage a group of Git/Maven projects together.

SYNTAX:
      pymvngit [MACRO | FUNCTION] {argument(s)}
EXAMPLES:
pymvngit start
pymvngit build-all
pymvngit listProjects
pymvngit listMacros -v
pymvngit add-push -A Patch v0.5.7 "Bug Fix password field blank"
pymvngit status-all
pymvngit install-commons
pymvngit ltags

MACRO: A sequence of Git/Maven commands to run sequentially over project(s) of a repository.

REPOSITORY: A collection of Git/Maven projects that can be managed together.

RUNNING
Functions
  • start: Create a repository from the current directory. The current folder itself, and every first-level sub-folder, will be analyzed and if it's a Git/Maven project, will be part of this created repository. The name of the folder will be used to reference the project in Macros.

  • clone: Create a repository cloning all the URL repository(ies) passed as argument

    • arguments:
      - 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: List the projects part of the repository associated with the current directory.

  • listMacros: List the macros configured.

    • arguments:
      - Show more details, print a table for each one of them: -v
      
Macros
  • [macro]: Name of a macro to be executed. As example, some default macros are already available. In order to manage the macros: adding, modifying or removing, use the command:
pymvngit editMacros      #or only emac for short

Structure of a Macro:

"[INTERNAL-KEY]": {
    "key": "[NAME-MACRO]",
    "description": "[DESCRIPTION]",
    "executions": [
        {
            "tool": "[git OR maven]",
            "command": "[COMMAND]",
            "projects": ["NAME-PROJECT","NAME-PROJECT"]
        },
}

Examples of macros:

"1": {
    "key": "tag-everyone",
    "description": "Tag all the projects",
    "executions": [
        {
            "tool": "git",
            "command": "tag -a $1 -m $2",
            ## When no project are informed, all of the repository are used
            "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"]
        }
    ]
}

Metadata

Release files for pymvngit 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pymvngit 0.2.2
File Size Uploaded
pymvngit-0.2.2.tar.gz 20.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pymvngit 0.2.2
File Interpreter ABI Platform
pymvngit-0.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 46.3 kB

Release files / pymvngit-0.2.2.tar.gz

Download URL pymvngit-0.2.2.tar.gz
Size 20.7 kB
Tags Source
SHA-256 checksum
How to use checksums
9f4feebf972b620d062ae2e25251f37a1e6ea3c3098d152d2954342583ee375a
BLAKE2b-256 checksum
How to use checksums
e41248d65224ef185d5d24e34f12fef2822fad374b275f3f4b2cff1a7eb8f175
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.2

Release files / pymvngit-0.2.2-py3-none-any.whl

Download URL pymvngit-0.2.2-py3-none-any.whl
Size 25.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
31f7a28b119d7559ad9de3ea845839c8d71c94e69be3930f6093fd669ba492a2
BLAKE2b-256 checksum
How to use checksums
0677e147f8111222613222294772e88e8c4a2519c0f9f902820ba8b862849216
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.2

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.12

2 release files

0.1.11

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page