You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, great tools!
Unfortunately I don't use vscode. Is there any plan to make this tool usable from the CLI? or do you have any pointers if I want to implement a CLI for this?
If you want an updated version, you'll have to download and unzip whenever there is a new release.
If you have any ideas or can help with making setup and update smoother, that would be great.
Ideas
Rollup
I did some experiments today but got stuck because of the a mix of ES modules and CJS modules and fighting with TypeScript and Rollup.
I found a way to bundle the out/cli.js file the (CLI entry point of my tool) as a single JS file with dependencies, using the Rollup tool and plugins. I need to make a change to a ton of imports to make them use .js explicitly for that to work properly.
Shell script distribution
I am thinking of a pipeline solution to make the .sh file installable with one or more JS files.
At the least using curl.
But there are more professional tools I've seen for making Bash tools easy to install and update.
NPM package
Another idea I had is to do away with the Bash + JS option and instead make my tool installable as an NPM package (I've seen NPM packages come as a binary that was compiled from Go for example).
Then you would install my tool as
npm i auto-commit-msg
And run like
git commit --edit -m "$(npx auto-commit-msg)"
And also this could be expanded to work on Windows if the .sh script I provided worked as .cmd / powershell
Activity
MichaelCurrin commentedon Nov 18, 2023
Hi, thanks for the interest. There is actually a CLI option.
https://github.com/MichaelCurrin/auto-commit-msg/tree/master/shell#autofill-scripts
I am missing pieces that make it easy to bundle and install. However I can send you something so you can try it out yourself, for Linux.
Setup
Make sure
/usr/local/binis yourPATHvariableThen continue.
acm.shin/usr/local/binHere is the script
Usage
You can run it like this
And that is of course easier if you add a Bash alias or a Git alias
Here for Git config:
Then just
MichaelCurrin commentedon Nov 18, 2023
If you want an updated version, you'll have to download and unzip whenever there is a new release.
If you have any ideas or can help with making setup and update smoother, that would be great.
Ideas
Rollup
I did some experiments today but got stuck because of the a mix of ES modules and CJS modules and fighting with TypeScript and Rollup.
I found a way to bundle the
out/cli.jsfile the (CLI entry point of my tool) as a single JS file with dependencies, using the Rollup tool and plugins. I need to make a change to a ton of imports to make them use.jsexplicitly for that to work properly.Shell script distribution
I am thinking of a pipeline solution to make the .sh file installable with one or more JS files.
At the least using curl.
But there are more professional tools I've seen for making Bash tools easy to install and update.
NPM package
Another idea I had is to do away with the Bash + JS option and instead make my tool installable as an NPM package (I've seen NPM packages come as a binary that was compiled from Go for example).
Then you would install my tool as
And run like
And also this could be expanded to work on Windows if the .sh script I provided worked as .cmd / powershell