uffizzi-cli 0.11.2 → 0.11.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7c1515d3dbc2f3e8cdf08d18602248f6059aede5e63c702600f0cca97efa19d8
4
- data.tar.gz: 7945ef89453d07a194f61102ab72484a24b5b4a44ebc834cb7bbfac06393e1bb
3
+ metadata.gz: 180b017f63db77067a36ac80286e244bed3c363e9c884c6c65e7f0157c5342dd
4
+ data.tar.gz: 024ad78f5e85209b2970324f68b8017f1a9fb919e3c9b7dcfbc31ef903dad548
5
5
  SHA512:
6
- metadata.gz: 0deb98fdefb88dd09a65f1991c7980fe253eea34325f0cc044433823fe4ef2408d3dd2002078a141e94830ea8e3db4aa938dda9bfcf17b51f9526900ac04ba75
7
- data.tar.gz: bc4b3deeae31d244aa8d2b76e3ab00ca671af015df70f328c9a843ffd27270275d098bdbe20fa5421db242e9311c93e2854be04063863086207180dae2a1fd4d
6
+ metadata.gz: d2c0eb580b2b290b03bbbab9069020b150929cdeb3eeca9ec10bd238b9325a48c77716b19f30e638435ad00c9c406a6d0d4bfa7049aa63afc7861233700d71a3
7
+ data.tar.gz: 39bc279bb44a2ed422220d517fe104942efb17ccbcc0a7ee58bb0698b923aea2396d3cc493303cadc92cc723cba8114dde62bc3a9c4564e7e6e3b53ff17ac7d2
@@ -126,12 +126,14 @@ module Uffizzi
126
126
  desc 'ghcr', 'Connect to GitHub Container Registry (ghcr.io)'
127
127
  method_option :skip_raise_existence_error, type: :boolean, default: false,
128
128
  desc: 'Skip raising an error within check the credential'
129
+ method_option :username, type: :string, aliases: :u
130
+ method_option :token, type: :string, aliases: :t
129
131
  def ghcr
130
132
  type = Uffizzi.configuration.credential_types[:github_registry]
131
133
  check_credential_existence(type, 'ghcr')
132
134
 
133
- username = ENV['GITHUB_USERNAME'] || Uffizzi.ui.ask('Github Username: ')
134
- password = ENV['GITHUB_ACCESS_TOKEN'] || Uffizzi.ui.ask('Access Token: ', echo: false)
135
+ username = options[:username] || ENV['GITHUB_USERNAME'] || Uffizzi.ui.ask('Github Username:')
136
+ password = options[:token] || ENV['GITHUB_ACCESS_TOKEN'] || Uffizzi.ui.ask('Access Token:', echo: false)
135
137
 
136
138
  params = {
137
139
  username: username,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uffizzi
4
- VERSION = '0.11.2'
4
+ VERSION = '0.11.3'
5
5
  end
data/man/uffizzi-connect CHANGED
@@ -1,6 +1,6 @@
1
1
  .\" generated with Ronn-NG/v0.9.1
2
2
  .\" http://github.com/apjanke/ronn-ng/tree/0.9.1
3
- .TH "UFFIZZI\-CONNECT" "" "May 2022" ""
3
+ .TH "UFFIZZI\-CONNECT" "" "July 2022" ""
4
4
  .SH "NAME"
5
5
  \fBuffizzi\-connect\fR \- grant a Uffizzi user account access to external services
6
6
  .SH "SYNOPSIS"
@@ -30,7 +30,7 @@ ecr
30
30
  gcr
31
31
  Connect to Google Container Registry (gcr\.io)\.
32
32
 
33
- gchr
33
+ ghcr
34
34
  Connect to GitHub Container Registry (ghcr\.io)\.
35
35
  .fi
36
36
  .P
@@ -1,16 +1,20 @@
1
1
  .\" generated with Ronn-NG/v0.9.1
2
2
  .\" http://github.com/apjanke/ronn-ng/tree/0.9.1
3
- .TH "UFFIZZI\-CONNECT\-ECR" "" "May 2022" ""
3
+ .TH "UFFIZZI\-CONNECT\-GHCR" "" "July 2022" ""
4
4
  .SH "NAME"
5
- \fBuffizzi\-connect\-ecr\fR \- grant a Uffizzi user account access to a private GitHub Container Registry (GHCR)
5
+ \fBuffizzi\-connect\-ghcr\fR \- grant a Uffizzi user account access to a private GitHub Container Registry (GHCR)
6
6
  .SH "SYNOPSIS"
7
7
  .nf
8
- uffizzi connect ecr
8
+ uffizzi connect ghcr [OPTION]\|\.\|\.\|\.
9
9
  .fi
10
10
  .SH "DESCRIPTION"
11
11
  .nf
12
12
  Given valid credentials, grants a Uffizzi user account access
13
- to a private GitHub Container Registry
13
+ to a private GitHub Container Registry\.
14
+
15
+ Credentials can be provided interactively or non\-interactively
16
+ via command options or environment variables:
17
+ GITHUB_USERNAME, GITHUB_ACCESS_TOKEN
14
18
 
15
19
  This command can fail for the following reasons:
16
20
  \- The active user does not have permission to connect
@@ -24,12 +28,17 @@ For detailed instructions on configuring webhooks to send push
24
28
  notifications to Uffizzi, see
25
29
  https://docs\.uffizzi\.com/guides/container\-registry\-integrations
26
30
  .fi
31
+ .SH "OPTIONS"
32
+ .nf
33
+ \-u, \-\-username GitHub username
34
+ \-t, \-\-token Personal access token from GitHub
35
+ .fi
27
36
  .SH "EXAMPLES"
28
37
  .nf
29
38
  The following command will prompt the user to enter GHCR
30
39
  credentials, including GitHub account name and
31
- personal access key (PAT):
40
+ personal access token (PAT):
32
41
 
33
- $ uffizzi connect ecr
42
+ uffizzi connect ghcr
34
43
  .fi
35
44
 
@@ -1,15 +1,19 @@
1
- uffizzi-connect-ecr - grant a Uffizzi user account access to a private GitHub Container Registry (GHCR)
1
+ uffizzi-connect-ghcr - grant a Uffizzi user account access to a private GitHub Container Registry (GHCR)
2
2
  ================================================================
3
3
 
4
4
  ## SYNOPSIS
5
- uffizzi connect ecr
5
+ uffizzi connect ghcr [OPTION]...
6
6
 
7
7
  ## DESCRIPTION
8
- Given valid credentials, grants a Uffizzi user account access
9
- to a private GitHub Container Registry
8
+ Given valid credentials, grants a Uffizzi user account access
9
+ to a private GitHub Container Registry.
10
+
11
+ Credentials can be provided interactively or non-interactively
12
+ via command options or environment variables:
13
+ GITHUB_USERNAME, GITHUB_ACCESS_TOKEN
10
14
 
11
15
  This command can fail for the following reasons:
12
- - The active user does not have permission to connect
16
+ - The active user does not have permission to connect
13
17
  external services.
14
18
  - The given credentials are invalid.
15
19
 
@@ -17,12 +21,16 @@ uffizzi-connect-ecr - grant a Uffizzi user account access to a private GitHub Co
17
21
  https://github.com/UffizziCloud/uffizzi_cli
18
22
 
19
23
  For detailed instructions on configuring webhooks to send push
20
- notifications to Uffizzi, see
24
+ notifications to Uffizzi, see
21
25
  https://docs.uffizzi.com/guides/container-registry-integrations
22
26
 
27
+ ## OPTIONS
28
+ -u, --username GitHub username
29
+ -t, --token Personal access token from GitHub
30
+
23
31
  ## EXAMPLES
24
- The following command will prompt the user to enter GHCR
25
- credentials, including GitHub account name and
26
- personal access key (PAT):
27
-
28
- $ uffizzi connect ecr
32
+ The following command will prompt the user to enter GHCR
33
+ credentials, including GitHub account name and
34
+ personal access token (PAT):
35
+
36
+ uffizzi connect ghcr
@@ -24,8 +24,8 @@ uffizzi-connect - grant a Uffizzi user account access to external services
24
24
 
25
25
  gcr
26
26
  Connect to Google Container Registry (gcr.io).
27
-
28
- gchr
27
+
28
+ ghcr
29
29
  Connect to GitHub Container Registry (ghcr.io).
30
30
 
31
31
  Run 'uffizzi connect COMMAND --help' for more information on a command.
@@ -1,6 +1,6 @@
1
1
  .\" generated with Ronn-NG/v0.9.1
2
2
  .\" http://github.com/apjanke/ronn-ng/tree/0.9.1
3
- .TH "UFFIZZI\-DISCONNECT" "" "May 2022" ""
3
+ .TH "UFFIZZI\-DISCONNECT" "" "July 2022" ""
4
4
  .SH "NAME"
5
5
  \fBuffizzi\-disconnect\fR \- revoke a Uffizzi user account access to external services
6
6
  .SH "SYNOPSIS"
@@ -30,7 +30,7 @@ ecr
30
30
  gcr
31
31
  Disonnect from Google Container Registry (gcr\.io)\.
32
32
 
33
- gchr
33
+ ghcr
34
34
  Disonnect from GitHub Container Registry (ghcr\.io)\.
35
35
  .fi
36
36
  .P
@@ -24,8 +24,8 @@ uffizzi-disconnect - revoke a Uffizzi user account access to external services
24
24
 
25
25
  gcr
26
26
  Disonnect from Google Container Registry (gcr.io).
27
-
28
- gchr
27
+
28
+ ghcr
29
29
  Disonnect from GitHub Container Registry (ghcr.io).
30
30
 
31
31
  Run 'uffizzi disconnect COMMAND --help' for more information on a command.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uffizzi-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.2
4
+ version: 0.11.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Thurman
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2022-07-12 00:00:00.000000000 Z
12
+ date: 2022-07-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: awesome_print