autogitc 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/autogitc +15 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 75804e7d050e14841aea1874360f01e51816f681dbb0b1e023e51d48813b935e
|
4
|
+
data.tar.gz: b51d4a9d1e853a6e1b2ad633d30fda8f98a060854cb391dcbe2ea3d8fdf3c8b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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}"
|