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)
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
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file commitcli-1.4.2.tar.gz
.
File metadata
- Download URL: commitcli-1.4.2.tar.gz
- Upload date:
- Size: 17.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b61308352b5f70afbb62590ee996d48881d6e08a4f87fa23d194c80378531df |
|
MD5 | b1e3591fec7ec5da233dbb1a1432def8 |
|
BLAKE2b-256 | 45a6ce3e8fc52130867d7a64e33bf17dda82c01dfff646220b301fcefa71ef97 |
File details
Details for the file commitcli-1.4.2-py3-none-any.whl
.
File metadata
- Download URL: commitcli-1.4.2-py3-none-any.whl
- Upload date:
- Size: 20.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa887bbbf3c7db0fa1c34fe390f85f4e87cbdd4a197ca52f6a342db7301f295a |
|
MD5 | 2404573fb11b02793bde4def352275f2 |
|
BLAKE2b-256 | a5d72fe4a6308f136a0a163a3055f7a2f5362f79c0aa8f4f0de53adf55072e1d |