autogitc 0.3.1 → 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: 52e7d94f98de52c902808baecc724449f56128cf85a6b9a308892139789cb80d
4
- data.tar.gz: da9da262b2e2e597cdbe7f273b1c8def5df7bac9bfcdad7ace272fb124b8a8fb
3
+ metadata.gz: 75804e7d050e14841aea1874360f01e51816f681dbb0b1e023e51d48813b935e
4
+ data.tar.gz: b51d4a9d1e853a6e1b2ad633d30fda8f98a060854cb391dcbe2ea3d8fdf3c8b2
5
5
  SHA512:
6
- metadata.gz: 47a2f05c942e884654eb3defa7b689f4bc022bdbc025742e5c9def0424ba9090ac54153f5337ea27f778d953d33418bda80bc41b57f8e9a9373f5d6f5da86eda
7
- data.tar.gz: 95aaf9bfab1898e1104c341e695f0a458669603e3d4ba5f75589a4ccaf466fe154b06a715a92537a8efa235ee3eee0d0a9817791d19bb42fea07a94f9c8bfc0b
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.1
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Goh