Skip to content

Commit

Permalink
fix: update version to 0.3.3 and add help message
Browse files Browse the repository at this point in the history
  • Loading branch information
adriangohjw committed Sep 4, 2024
1 parent e3e361f commit 1993094
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion autogitc.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Gem::Specification.new do |s|
s.name = 'autogitc'
s.version = '0.3.2'
s.version = '0.3.3'
s.summary = 'Auto-generate Git commit messages with LLM'
s.description = 'This gem simplifies the commit process by automatically generating descriptive commit messages based on the files that have been added to the Git staging area. It leverages LLM to analyze the changes and create meaningful commit messages, helping you maintain a clean and organized commit history.'
s.authors = ['Adrian Goh']
Expand Down
15 changes: 15 additions & 0 deletions bin/autogitc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,21 @@ require 'bundler/setup'
require_relative '../lib/commit_generator'
require_relative '../lib/pr_template_generator'

if ARGV.include?('--help')
puts <<~HELP
Usage: autogitc [options]
Options:
pr Generate a pull request template
--base=<branch> Specify the base branch (default: main)
--nocommit, --nc Run without committing changes
--text=<text> Specify text that must be included in the commit
--help Display this help message
--version Show the version of autogitc
HELP
exit
end

if ARGV.include?('--version')
gemspec = Gem::Specification.load('autogitc.gemspec')
puts "autogitc version #{gemspec.version}"
Expand Down

0 comments on commit 1993094

Please sign in to comment.