Skip to main content

Tool to manage a group of Git/Maven projects.

Project description

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 summary
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.

  • listProjects: List the projects part of the repository associated with the current directory.

  • listMacros: List the macros configured.

    • arguments:
      • "summary": list a summary of all commands on a single table
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"]
        }
    ]
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pymvngit-0.1.9.tar.gz (17.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pymvngit-0.1.9-py3-none-any.whl (21.4 kB view details)

Uploaded Python 3

File details

Details for the file pymvngit-0.1.9.tar.gz.

File metadata

  • Download URL: pymvngit-0.1.9.tar.gz
  • Upload date:
  • Size: 17.0 kB
  • Tags: Source
  • Uploaded using 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.49.0 CPython/3.8.2

File hashes

Hashes for pymvngit-0.1.9.tar.gz
Algorithm Hash digest
SHA256 38ea8a369474c06912c2d57d9a6783ae8119087d1db151cfedcf6fbda08b003b
MD5 a284d2b68ca02035347b9dd91e3864c5
BLAKE2b-256 e0cc48502564c6e2aab0da2bc44de4ee8dc1fa35257800890a983796833e6cea

See more details on using hashes here.

File details

Details for the file pymvngit-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: pymvngit-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 21.4 kB
  • Tags: Python 3
  • Uploaded using 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.49.0 CPython/3.8.2

File hashes

Hashes for pymvngit-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 3e8c5f782cafcf3ca696e6fbb9f9dd047b5ccc537a627f13e6827ee4738bfbc6
MD5 c2db2fcfe4aa8b6164305969d6d67a23
BLAKE2b-256 d2fd5aa07fc2d5a3d742dd3c0cd9c1cc16a39b8d185381fcec06bba71691432d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page