uffizzi-cli 0.11.1 → 0.11.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/uffizzi/cli/connect.rb +4 -2
- data/lib/uffizzi/cli/login.rb +2 -1
- data/lib/uffizzi/cli.rb +2 -2
- data/lib/uffizzi/services/compose_file_service.rb +1 -1
- data/lib/uffizzi/version.rb +1 -1
- data/man/uffizzi-connect +2 -2
- data/man/uffizzi-connect-ghcr +15 -6
- data/man/uffizzi-connect-ghcr.ronn +19 -11
- data/man/uffizzi-connect.ronn +2 -2
- data/man/uffizzi-disconnect +2 -2
- data/man/uffizzi-disconnect.ronn +2 -2
- 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: e92bf221528510c670cb020826d6449a4c200dcdacb6b6c42cea9344f1aac12b
|
4
|
+
data.tar.gz: d95b2e8069051b7450d099add663104da159756913ca977d303f673805d8d0cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3da65fe42dd24ddca4c3c5fb7b15349e1daeef00689c421b0556d1d58eb34169de7c8bb4474ff1594fc5e526a1a5d8bd89124b649fb2606f10172440236613d
|
7
|
+
data.tar.gz: f68cba8bbbf8591dfb5310606f7322b312171d1110587fd80969453fccaa82d2f31aab560731d962122e82524f7a4ac20283e5f2d2b8965b0e027bae370e3746
|
data/lib/uffizzi/cli/connect.rb
CHANGED
@@ -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:
|
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,
|
data/lib/uffizzi/cli/login.rb
CHANGED
@@ -34,7 +34,8 @@ module Uffizzi
|
|
34
34
|
|
35
35
|
def set_server
|
36
36
|
config_server = ConfigFile.exists? ? read_option_from_config(:server) : nil
|
37
|
-
@options[:server] || config_server || Uffizzi.ui.ask('Server: ')
|
37
|
+
server_address = @options[:server] || config_server || Uffizzi.ui.ask('Server: ')
|
38
|
+
server_address.start_with?('http:', 'https:') ? server_address : "https://#{server_address}"
|
38
39
|
end
|
39
40
|
|
40
41
|
def set_username
|
data/lib/uffizzi/cli.rb
CHANGED
@@ -64,8 +64,8 @@ module Uffizzi
|
|
64
64
|
super
|
65
65
|
rescue Interrupt
|
66
66
|
raise Uffizzi::Error.new('The command was interrupted')
|
67
|
-
rescue
|
68
|
-
raise Uffizzi::Error.new(
|
67
|
+
rescue StandardError => e
|
68
|
+
raise Uffizzi::Error.new(e.message)
|
69
69
|
end
|
70
70
|
|
71
71
|
private
|
@@ -92,7 +92,7 @@ class ComposeFileService
|
|
92
92
|
|
93
93
|
def parse_compose_content_to_object(compose_content)
|
94
94
|
begin
|
95
|
-
compose_data = Psych.safe_load(compose_content)
|
95
|
+
compose_data = Psych.safe_load(compose_content, aliases: true)
|
96
96
|
rescue Psych::SyntaxError
|
97
97
|
Uffizzi.ui.say('Invalid compose file')
|
98
98
|
end
|
data/lib/uffizzi/version.rb
CHANGED
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" "" "
|
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
|
-
|
33
|
+
ghcr
|
34
34
|
Connect to GitHub Container Registry (ghcr\.io)\.
|
35
35
|
.fi
|
36
36
|
.P
|
data/man/uffizzi-connect-ghcr
CHANGED
@@ -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\-
|
3
|
+
.TH "UFFIZZI\-CONNECT\-GHCR" "" "July 2022" ""
|
4
4
|
.SH "NAME"
|
5
|
-
\fBuffizzi\-connect\-
|
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
|
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
|
40
|
+
personal access token (PAT):
|
32
41
|
|
33
|
-
|
42
|
+
uffizzi connect ghcr
|
34
43
|
.fi
|
35
44
|
|
@@ -1,15 +1,19 @@
|
|
1
|
-
uffizzi-connect-
|
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
|
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
|
27
|
-
|
28
|
-
|
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
|
data/man/uffizzi-connect.ronn
CHANGED
@@ -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
|
-
|
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.
|
data/man/uffizzi-disconnect
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\-DISCONNECT" "" "
|
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
|
-
|
33
|
+
ghcr
|
34
34
|
Disonnect from GitHub Container Registry (ghcr\.io)\.
|
35
35
|
.fi
|
36
36
|
.P
|
data/man/uffizzi-disconnect.ronn
CHANGED
@@ -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
|
-
|
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.
|
4
|
+
version: 0.11.4
|
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-
|
12
|
+
date: 2022-07-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: awesome_print
|