Skip to main content

commit cli for git with some formats, by default short version of odoo format

Project description

Git Commmit Cli

This project provides a cli to make git commits with a minimized odoo format from a text wizard.

Checkit out on pypi.

Is a wrapper of the git commit -m command writed with 💟 on Python.

This was tested on a raspbian and a fedora OS with the nano, nvim and vim editor.

supported formats:

  • short odoo
  • conventional commits
  • semantic git commits
  • free (this is like use native git commit command)

Features

Commitcli configuration file per project

You can add a .commitclirc file in your project directory.

you can copy the global .commitclirc file to your project directory and edit it to use a diferent format.

cp ~/.commitclirc .commitclirc

Installation

1 - Install the package

note : use sudo if the local (user) python bin dir is not in the path

sudo pip install commitcli

example content of the .commitclirc file:

#Format for every commit
#supported formats free, odoo, sgc(semantic git commits) and cc (conventional commits)
format=odoo

#Option to sign the commits o every commit, must be True or False
signgpg=False

change this to use cc on your project:

#Format for every commit
#supported formats free, odoo, sgc(semantic git commits) and cc (conventional commits)
format=cc

#Option to sign the commits o every commit, must be True or False
signgpg=False

save this file and add to your git repository and every comand will use cc format on this project.

2 - Enjoy

Add files to commit

git add .

Use the tool

commitcli

Example

Odoo (default)

ejemplo de imagen

Configuration

This utility creates a file into the users home directory ~/.commitclirc in this file you will find some customizable options. the most important is the format option this option accepts this formats:

  • odoo
  • cc
  • free

Next Updates

  • only make a echo of a format
  • cli inline option to specify format (oddo, sgc, etc)
  • module list to chose for context in cc or something like this type(context)
  • quick templates
    • clean up
  • smarter
    • store module list and provide a list of modules to choose from and the last by default
  • create branches
    • use format /<type "ej fix">/

Formats

  • conventional commits CC
  • semantic git commit SGC
  • odoo tags Odoo

Development

Help

using without install from the source

python -m commitcli

References

https://magmax.org/python-inquirer/

https://python-packaging.readthedocs.io/en/latest/command-line-scripts.html

https://setuptools.readthedocs.io/en/latest/userguide/entry_point.html

https://medium.com/better-programming/python-click-building-your-first-command-line-interface-application-6947d5319ef7

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

commitcli-1.3.1.tar.gz (15.0 kB view details)

Uploaded Source

Built Distribution

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

commitcli-1.3.1-py3-none-any.whl (18.1 kB view details)

Uploaded Python 3

File details

Details for the file commitcli-1.3.1.tar.gz.

File metadata

  • Download URL: commitcli-1.3.1.tar.gz
  • Upload date:
  • Size: 15.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for commitcli-1.3.1.tar.gz
Algorithm Hash digest
SHA256 997f699bc94d4087ea81262f24675b52d9d856614b193b0a07c6736edd8241ef
MD5 17ab751057ceeb65fecfdc5cd23ba172
BLAKE2b-256 5e4f3fb295d8803eaa9f171f9a06ef55d334ca783f11479dd92db81523c21429

See more details on using hashes here.

File details

Details for the file commitcli-1.3.1-py3-none-any.whl.

File metadata

  • Download URL: commitcli-1.3.1-py3-none-any.whl
  • Upload date:
  • Size: 18.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for commitcli-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c3715e4da38f1ae2c98c91bb7c8e22a55a44d3f8f1fc4fdcf1fce847127767d7
MD5 4da27052dc7cb6de99c8e1c859ceb200
BLAKE2b-256 4709f183c6b8d624c57bad1ea20e57067decbb9b9ad1719a02653c45f531e4cf

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