autogitc 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/autogitc +15 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6172f9a5a53368d7742aea250e9580e5f0e6b04dc74a3d682fe664f8aa091b25
4
- data.tar.gz: b6a4634d9908e2092657c9a33b58e987a6245a91715d185bb1a7957d9a6a7297
3
+ metadata.gz: 75804e7d050e14841aea1874360f01e51816f681dbb0b1e023e51d48813b935e
4
+ data.tar.gz: b51d4a9d1e853a6e1b2ad633d30fda8f98a060854cb391dcbe2ea3d8fdf3c8b2
5
5
  SHA512:
6
- metadata.gz: 836baef144d43e4ffef6f209ab39dd8c33f7482929c3568eb9ecb2e40fc4bcd883b2f8a825491c1b8d3bcc38cbbbc1d2bde5386f294f06b22452bc95e17fec1d
7
- data.tar.gz: 9daba95131c266b4dcca3d536424d0d914c1d16bd9af79f108e9ca433c305bf1cf1ecf3c4fee04fd9c648b79f4c45525bd1f2c2e2df7208ddf19eae7cb5169ad
6
+ metadata.gz: f57e60de427629d1c63a23b5b13fa720103e50e6e1619af0c34f315af2061f0d292bd15710414a2dbe27acfca438cc80fc2190e2af67e2e472e814a6d5c88218
7
+ data.tar.gz: 7d1a1eaf011d597bdbe2cf5cb0585347b3af2db9b06e8b70f9036e38a4dbdd54adcdb831f470523b0be72b1d55f0e319f394d780fb097a58d0fba1fabfb1d5b0
data/bin/autogitc CHANGED
@@ -3,6 +3,21 @@ require 'bundler/setup'
3
3
  require_relative '../lib/commit_generator'
4
4
  require_relative '../lib/pr_template_generator'
5
5
 
6
+ if ARGV.include?('--help')
7
+ puts <<~HELP
8
+ Usage: autogitc [options]
9
+
10
+ Options:
11
+ pr Generate a pull request template
12
+ --base=<branch> Specify the base branch (default: main)
13
+ --nocommit, --nc Run without committing changes
14
+ --text=<text> Specify text that must be included in the commit
15
+ --help Display this help message
16
+ --version Show the version of autogitc
17
+ HELP
18
+ exit
19
+ end
20
+
6
21
  if ARGV.include?('--version')
7
22
  gemspec = Gem::Specification.load('autogitc.gemspec')
8
23
  puts "autogitc version #{gemspec.version}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autogitc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Goh