git-fit 0.5.3 → 0.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/git-fit.rb +1 -1
- data/lib/git_fit/cli/{remote_cli.rb → gh_cli.rb} +8 -8
- data/lib/git_fit/cli.rb +2 -2
- data/lib/git_fit/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b3388f891fdb16dd73df349152885f9a28f074495b3a7ef2f9932dae6b064cfb
|
|
4
|
+
data.tar.gz: cd9591fdd163b5e842743cbf96e89fb7dfb0b86b4a3b19aafd08b61447f4b34c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a18773ca91756e251326407cc9e919072925aa0f15ffc6429c05ef45c8bb4012d5ecefbec360308612f0b211b142a7a8e4fa0dbf60783ee38c83202acd4a90a3
|
|
7
|
+
data.tar.gz: 6bd5f44697a43805cef33b210d5d3d97c10e24e030652342167c5ac4c8ccf5c139ddc6db1e6afa2e3fd0e08d238f04eac1b7e33616d37db75c5c1dbccd441958
|
data/lib/git-fit.rb
CHANGED
|
@@ -64,7 +64,7 @@ require_relative "git_fit/export"
|
|
|
64
64
|
require_relative "git_fit/db/cli"
|
|
65
65
|
require_relative "git_fit/install/actions"
|
|
66
66
|
require_relative "git_fit/cli/install_cli"
|
|
67
|
-
require_relative "git_fit/cli/
|
|
67
|
+
require_relative "git_fit/cli/gh_cli"
|
|
68
68
|
require_relative "git_fit/cli/export"
|
|
69
69
|
require_relative "git_fit/cli/import_cli"
|
|
70
70
|
require_relative "git_fit/cli"
|
|
@@ -2,7 +2,7 @@ require "thor"
|
|
|
2
2
|
require "open3"
|
|
3
3
|
|
|
4
4
|
module GitFit
|
|
5
|
-
module
|
|
5
|
+
module GhHelpers
|
|
6
6
|
def detect_repo(url = nil)
|
|
7
7
|
url ||= `git remote get-url origin`.chomp
|
|
8
8
|
url.sub(%r{.*github\.com[:/]}, "").sub(/\.git$/, "")
|
|
@@ -16,8 +16,8 @@ module GitFit
|
|
|
16
16
|
end
|
|
17
17
|
end
|
|
18
18
|
|
|
19
|
-
class
|
|
20
|
-
include
|
|
19
|
+
class GhSecretCLI < Thor
|
|
20
|
+
include GhHelpers
|
|
21
21
|
|
|
22
22
|
class_option :repo, type: :string, desc: "GitHub repo (owner/repo)"
|
|
23
23
|
|
|
@@ -37,8 +37,8 @@ module GitFit
|
|
|
37
37
|
end
|
|
38
38
|
end
|
|
39
39
|
|
|
40
|
-
class
|
|
41
|
-
include
|
|
40
|
+
class GhConfigCLI < Thor
|
|
41
|
+
include GhHelpers
|
|
42
42
|
|
|
43
43
|
class_option :repo, type: :string, desc: "GitHub repo (owner/repo)"
|
|
44
44
|
|
|
@@ -58,11 +58,11 @@ module GitFit
|
|
|
58
58
|
end
|
|
59
59
|
end
|
|
60
60
|
|
|
61
|
-
class
|
|
61
|
+
class GhCLI < Thor
|
|
62
62
|
desc "secret SUBCOMMAND", "Manage GitHub Secrets"
|
|
63
|
-
subcommand "secret",
|
|
63
|
+
subcommand "secret", GhSecretCLI
|
|
64
64
|
|
|
65
65
|
desc "config SUBCOMMAND", "Manage GitHub Variables"
|
|
66
|
-
subcommand "config",
|
|
66
|
+
subcommand "config", GhConfigCLI
|
|
67
67
|
end
|
|
68
68
|
end
|
data/lib/git_fit/cli.rb
CHANGED
|
@@ -61,8 +61,8 @@ module GitFit
|
|
|
61
61
|
say_status :error, "Parse failed: #{e.message}", :red
|
|
62
62
|
end
|
|
63
63
|
|
|
64
|
-
desc "
|
|
65
|
-
subcommand "
|
|
64
|
+
desc "gh SUBCOMMAND", "Manage GitHub secrets and variables"
|
|
65
|
+
subcommand "gh", GhCLI
|
|
66
66
|
|
|
67
67
|
desc "install SUBCOMMAND", "Install project assets (actions)"
|
|
68
68
|
subcommand "install", InstallCLI
|
data/lib/git_fit/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: git-fit
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Lax
|
|
@@ -134,9 +134,9 @@ files:
|
|
|
134
134
|
- lib/git-fit.rb
|
|
135
135
|
- lib/git_fit/cli.rb
|
|
136
136
|
- lib/git_fit/cli/export.rb
|
|
137
|
+
- lib/git_fit/cli/gh_cli.rb
|
|
137
138
|
- lib/git_fit/cli/import_cli.rb
|
|
138
139
|
- lib/git_fit/cli/install_cli.rb
|
|
139
|
-
- lib/git_fit/cli/remote_cli.rb
|
|
140
140
|
- lib/git_fit/config.rb
|
|
141
141
|
- lib/git_fit/config_template.rb
|
|
142
142
|
- lib/git_fit/db/activity.rb
|