Conventional commits
zero effort
XOMMIT is a CLI tool that writes conventional commits from file diffs
██╗██╗██████╗███╗███╗███╗███╗██╗████████╗
╚██╗██╔╝██╔═══██╗████╗████║████╗████║██║╚══██╔══╝
╚███╔╝██║██║██╔████╔██║██╔████╔██║██║██║
██╔██╗██║██║██║╚██╔╝██║██║╚██╔╝██║██║██║
██╔╝██╗╚██████╔╝██║╚═╝██║██║╚═╝██║██║██║
╚═╝╚═╝╚═════╝╚═╝╚═╝╚═╝╚═╝╚═╝╚═╝
Install
XOMMIT uses Groq to turn your vague message into a commit message. It's free, you just need an API key. Takes like a minute.
- Go to console.groq.com and create an account. You can sign up with Google, GitHub or email, no card needed.
- Once you're in, open the API Keys page from the sidebar.
- Click Create API Key, give it any name (like
xommit) and submit. - Copy the key it shows you. It starts with
gsk_and you only see it once, so grab it right away. Lost it? Just delete it and make a new one.
Now install xommit below, then run this and paste the key when it asks:
xommit --connectYou can re-run xommit --connect anytime to change the key, or wipe it with xommit --reset.
You need to have Node.js installed.
npm install -g @abhraneeldhar7/xommitThis adds the xommit command to your PATH globally. Package page: @abhraneeldhar7/xommit on npm
If you get a permission error, use:
sudo npm install -g @abhraneeldhar7/xommitOr fix your npm permissions: docs.npmjs.com/resolving-eacces-permissions-errors
Verify it worked:
xommit --versionYou need to have Node.js installed.
npm install -g @abhraneeldhar7/xommitThis adds the xommit command to your PATH globally. Package page: @abhraneeldhar7/xommit on npm
If you get a permission error, use:
sudo npm install -g @abhraneeldhar7/xommitOr fix your npm permissions: docs.npmjs.com/resolving-eacces-permissions-errors
Verify it worked:
xommit --versionWorks on Linux and macOS. You need curl or wget (and git installed).
curl -fsSL https://raw.githubusercontent.com/abhraneeldhar7/xommit/master/cli-tool/scripts/install.sh | bashWhat it does:
- Detects your OS (Linux/macOS) and architecture (x64/arm64)
- Downloads the correct binary from GitHub Releases
- Makes it executable
- Installs it to
/usr/local/bin(may ask for sudo) - Prints next steps
Windows users: This installer does not work on Windows. Use npm or PowerShell instead.
Verify:
xommit --versionWorks on Windows (PowerShell 5.1+). Needs git installed.
irm https://raw.githubusercontent.com/abhraneeldhar7/xommit/master/cli-tool/scripts/install.ps1 | iexWhat it does:
- Downloads
xommit.exefrom GitHub Releases - Installs it to
%LOCALAPPDATA%\Programs\xommit - Adds the install directory to your user PATH
- Prints next steps
Restart your terminal after installation so the PATH changes take effect.
Verify:
xommit --versionBuild from source. You need a few things installed first:
1. Clone the repo from github.com/abhraneeldhar7/xommit:
git clone https://github.com/abhraneeldhar7/xommit.git
cd xommit/cli-tool2. Install dependencies (for the build script):
npm install3. Build:
node scripts/build.jsThis compiles src/main.cpp into a binary in the bin/ directory:
- Windows:
bin/xommit.exe - Linux:
bin/xommit - macOS:
bin/xommit-macos
4. Add it to your PATH:
Linux:
sudo cp bin/xommit /usr/local/bin/macOS:
sudo cp bin/xommit-macos /usr/local/bin/xommitWindows (PowerShell):
New-Item -ItemType Directory -Force "$env:LOCALAPPDATA\Programs\xommit"
Copy-Item bin\xommit.exe "$env:LOCALAPPDATA\Programs\xommit\"Or add cli-tool/bin/ to your PATH permanently.
5. Connect your Groq key:
xommit --connectCompiler requirements:
- Windows: MinGW-w64 (g++)
- Linux:
sudo apt install g++ - macOS:
xcode-select --install
Commands
xommit <your_message_here>
or just xommit works just fine
--help
show tutorial
--connect
paste in your groq key
--reset
remove groq apikey
--update
download latest release from github
--version
show version
How AI was used in this project
I'm inspired by the black magic @ruben does on twitter. Wanted to move past the dsa questions, so used AI to set-up the skeleton and iterated over it. I'm using this project to learn cpp in-depth, wanted to share a cool tool.
Made by abhraneel
