uffizzi-cli 0.11.4 → 0.14.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,32 +1,36 @@
1
- uffizzi-connect-gcr - grant a Uffizzi user account access to a private Google Container Registry (GCR)
2
- ================================================================
1
+ # uffizzi-connect-gcr - grant a Uffizzi user account access to a private Google Container Registry (GCR)
3
2
 
4
3
  ## SYNOPSIS
5
- uffizzi connect gcr [KEY_FILE]
4
+
5
+ `uffizzi connect gcr` [KEY_FILE]
6
6
 
7
7
  ## DESCRIPTION
8
- Given valid credentials, grants a Uffizzi user account access
9
- to a private Google Container Registry
10
8
 
11
- This command can fail for the following reasons:
12
- - The active user does not have permission to connect
13
- external services.
14
- - The given credentials are invalid.
9
+ Given valid credentials, grants a Uffizzi user account access
10
+ to a private Google Container Registry
11
+
12
+ Credentials can be provided via a key file or environment variable:
13
+ `GCLOUD_SERVICE_KEY`
14
+
15
+ This command can fail for the following reasons:
16
+ - The active user does not have permission to connect external services.
17
+ - The given credentials are invalid.
15
18
 
16
- For more information on connecting to external services, see:
17
- https://github.com/UffizziCloud/uffizzi_cli
19
+ For more information on connecting to external services, see:
20
+ https://github.com/UffizziCloud/uffizzi_cli
18
21
 
19
- For detailed instructions on configuring webhooks to send push
20
- notifications to Uffizzi, see
21
- https://docs.uffizzi.com/guides/container-registry-integrations
22
+ For detailed instructions on configuring webhooks to send push
23
+ notifications to Uffizzi, see:
24
+ https://docs.uffizzi.com/guides/container-registry-integrations
22
25
 
23
- ## POSITIONAL ARGUMENTS
24
- KEY_FILE
25
- A Google Cloud service account key file. The key file is a
26
- JSON file that grants Uffizzi access to a private GCR.
26
+ ## ARGUMENTS
27
+
28
+ * KEY_FILE:
29
+ A Google Cloud service account key file. The key file is a JSON file that grants Uffizzi access to a private GCR.
27
30
 
28
31
  ## EXAMPLES
29
- The following command uses a Google Cloud service account key
30
- file called sa-private-key.json to connect to a private GCR:
31
-
32
- $ uffizzi connect gcr sa-private-key.json
32
+
33
+ The following command uses a Google Cloud service account key
34
+ file called sa-private-key.json to connect to a private GCR:
35
+
36
+ `uffizzi connect gcr sa-private-key.json`
@@ -1,44 +1,34 @@
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\-GHCR" "" "July 2022" ""
3
+ .TH "UFFIZZI\-CONNECT\-GHCR" "" "August 2022" ""
4
4
  .SH "NAME"
5
5
  \fBuffizzi\-connect\-ghcr\fR \- grant a Uffizzi user account access to a private GitHub Container Registry (GHCR)
6
6
  .SH "SYNOPSIS"
7
- .nf
8
- uffizzi connect ghcr [OPTION]\|\.\|\.\|\.
9
- .fi
7
+ \fBuffizzi connect ghcr\fR [\-\-username=USERNAME] [\-\-token=TOKEN]
10
8
  .SH "DESCRIPTION"
11
- .nf
12
- Given valid credentials, grants a Uffizzi user account access
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
18
-
19
- This command can fail for the following reasons:
20
- \- The active user does not have permission to connect
21
- external services\.
22
- \- The given credentials are invalid\.
23
-
9
+ Given valid credentials, grants a Uffizzi user account access to a private GitHub Container Registry\.
10
+ .P
11
+ Credentials can be provided interactively or non\-interactively via command options or environment variables:
12
+ .br
13
+ \fBGITHUB_USERNAME\fR, \fBGITHUB_ACCESS_TOKEN\fR
14
+ .P
15
+ This command can fail for the following reasons: \- The active user does not have permission to connect external services\. \- The given credentials are invalid\.
16
+ .P
24
17
  For more information on connecting to external services, see:
18
+ .br
25
19
  https://github\.com/UffizziCloud/uffizzi_cli
26
-
27
- For detailed instructions on configuring webhooks to send push
28
- notifications to Uffizzi, see
20
+ .P
21
+ For detailed instructions on configuring webhooks to send push notifications to Uffizzi, see:
22
+ .br
29
23
  https://docs\.uffizzi\.com/guides/container\-registry\-integrations
30
- .fi
31
24
  .SH "OPTIONS"
32
- .nf
33
- \-u, \-\-username GitHub username
34
- \-t, \-\-token Personal access token from GitHub
35
- .fi
25
+ .TP
26
+ \fB\-u\fR, \fB\-\-username=<username>\fR
27
+ Username for the service\.
28
+ .TP
29
+ \fB\-t\fR, \fB\-\-token=<token>\fR
30
+ Access token for the service\.
36
31
  .SH "EXAMPLES"
37
- .nf
38
- The following command will prompt the user to enter GHCR
39
- credentials, including GitHub account name and
40
- personal access token (PAT):
41
-
42
- uffizzi connect ghcr
43
- .fi
44
-
32
+ The following command will prompt the user to enter GHCR credentials, including GitHub account name and personal access token (PAT):
33
+ .P
34
+ \fBuffizzi connect ghcr\fR
@@ -1,36 +1,40 @@
1
- uffizzi-connect-ghcr - grant a Uffizzi user account access to a private GitHub Container Registry (GHCR)
2
- ================================================================
1
+ # uffizzi-connect-ghcr - grant a Uffizzi user account access to a private GitHub Container Registry (GHCR)
3
2
 
4
3
  ## SYNOPSIS
5
- uffizzi connect ghcr [OPTION]...
4
+
5
+ `uffizzi connect ghcr` [--username=USERNAME] [--token=TOKEN]
6
6
 
7
7
  ## DESCRIPTION
8
- Given valid credentials, grants a Uffizzi user account access
9
- to a private GitHub Container Registry.
10
8
 
11
- Credentials can be provided interactively or non-interactively
12
- via command options or environment variables:
13
- GITHUB_USERNAME, GITHUB_ACCESS_TOKEN
9
+ Given valid credentials, grants a Uffizzi user account access
10
+ to a private GitHub Container Registry.
11
+
12
+ Credentials can be provided interactively or non-interactively
13
+ via command options or environment variables:
14
+ `GITHUB_USERNAME`, `GITHUB_ACCESS_TOKEN`
14
15
 
15
- This command can fail for the following reasons:
16
- - The active user does not have permission to connect
17
- external services.
18
- - The given credentials are invalid.
16
+ This command can fail for the following reasons:
17
+ - The active user does not have permission to connect external services.
18
+ - The given credentials are invalid.
19
19
 
20
- For more information on connecting to external services, see:
21
- https://github.com/UffizziCloud/uffizzi_cli
20
+ For more information on connecting to external services, see:
21
+ https://github.com/UffizziCloud/uffizzi_cli
22
22
 
23
- For detailed instructions on configuring webhooks to send push
24
- notifications to Uffizzi, see
25
- https://docs.uffizzi.com/guides/container-registry-integrations
23
+ For detailed instructions on configuring webhooks to send push
24
+ notifications to Uffizzi, see:
25
+ https://docs.uffizzi.com/guides/container-registry-integrations
26
26
 
27
27
  ## OPTIONS
28
- -u, --username GitHub username
29
- -t, --token Personal access token from GitHub
28
+
29
+ * `-u`, `--username=<username>`:
30
+ Username for the service.
31
+ * `-t`, `--token=<token>`:
32
+ Access token for the service.
30
33
 
31
34
  ## EXAMPLES
32
- The following command will prompt the user to enter GHCR
33
- credentials, including GitHub account name and
34
- personal access token (PAT):
35
35
 
36
- uffizzi connect ghcr
36
+ The following command will prompt the user to enter GHCR
37
+ credentials, including GitHub account name and
38
+ personal access token (PAT):
39
+
40
+ `uffizzi connect ghcr`
@@ -1,31 +1,45 @@
1
- uffizzi-connect - grant a Uffizzi user account access to external services
2
- ================================================================
1
+ # uffizzi-connect - grant a Uffizzi user account access to external services
3
2
 
4
3
  ## SYNOPSIS
5
- uffizzi connect COMMAND
4
+
5
+ `uffizzi connect` COMMAND [--skip-raise-existence-error] [--update-credential-if-exists]
6
6
 
7
7
  ## DESCRIPTION
8
- Grants a Uffizzi user account access to external services
9
8
 
10
- For more information on connecting to external services, see:
11
- https://github.com/UffizziCloud/uffizzi_cli
9
+ Grants a Uffizzi user account access to external services.
10
+
11
+ For more information on connecting to external services, see:
12
+ https://github.com/UffizziCloud/uffizzi_cli
12
13
 
13
14
  ## COMMANDS
14
- COMMAND is one of the following:
15
15
 
16
- acr
17
- Connect to Azure Container Registry (azurecr.io).
16
+ COMMAND is one of the following:
17
+
18
+ * `acr`:
19
+ Connect to Azure Container Registry (azurecr.io).
20
+
21
+ * `docker-hub`:
22
+ Connect to Docker Hub (hub.docker.com).
23
+
24
+ * `docker-registry`:
25
+ Connect to any registry implementing the Docker Registry HTTP API protocol
26
+
27
+ * `ecr`:
28
+ Connect to Amazon Elastic Container Registry (amazonaws.com).
29
+
30
+ * `gcr`:
31
+ Connect to Google Container Registry (gcr.io).
32
+
33
+ * `ghcr`:
34
+ Connect to GitHub Container Registry (ghcr.io).
18
35
 
19
- docker-hub
20
- Connect to Docker Hub (hub.docker.com).
21
36
 
22
- ecr
23
- Connect to Amazon Elastic Container Registry (amazonaws.com).
37
+ ## FLAGS
24
38
 
25
- gcr
26
- Connect to Google Container Registry (gcr.io).
39
+ * `--skip-raise-existence-error`:
40
+ If credential exists, do not raise an exception, just print a message.
27
41
 
28
- ghcr
29
- Connect to GitHub Container Registry (ghcr.io).
42
+ * `--update-credential-if-exists`:
43
+ Update credential if it exists.
30
44
 
31
- Run 'uffizzi connect COMMAND --help' for more information on a command.
45
+ 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\-PREVIEW\-CREATE" "" "May 2022" ""
3
+ .TH "UFFIZZI\-PREVIEW\-CREATE" "" "August 2022" ""
4
4
  .SH "NAME"
5
5
  \fBuffizzi\-preview\-create\fR \- create a preview
6
6
  .SH "SYNOPSIS"
@@ -32,6 +32,12 @@ https://github\.com/UffizziCloud/uffizzi_cli
32
32
  the previews they create: when the preview is deleted, the
33
33
  alternate compose is deleted by the Uffizzi API\.
34
34
  .fi
35
+ .SH "FLAGS"
36
+ .nf
37
+ \-\-set\-labels=METADATA
38
+ Metadata of deployment that contains any information which can
39
+ be usefull for filtering deployments\.
40
+ .fi
35
41
  .SH "UFFIZZI WIDE FLAGS"
36
42
  .nf
37
43
  These flags are available to all commands: \-\-project\. Run $ uffizzi
@@ -46,5 +52,14 @@ To create a preview with the project\'s default compose file, run:
46
52
  To create a preview with an alternate compose file, run:
47
53
 
48
54
  $ uffizzi preview create docker\-compose\.uffizzi\.alt\.yml
55
+
56
+ To create a preview with single label, run:
57
+
58
+ $ uffizzi preview create \-\-set\-labels github\.repo=my_repo
59
+
60
+ To create a preview with multiple labels, run:
61
+
62
+ $ uffizzi preview create \e
63
+ \-\-set\-labels="github\.repo=my_repo github\.pull_request\.number=23"
49
64
  .fi
50
65
 
@@ -27,6 +27,11 @@ uffizzi-preview-create - create a preview
27
27
  the previews they create: when the preview is deleted, the
28
28
  alternate compose is deleted by the Uffizzi API.
29
29
 
30
+ ## FLAGS
31
+ --set-labels=METADATA
32
+ Metadata of deployment that contains any information which can
33
+ be usefull for filtering deployments.
34
+
30
35
  ## UFFIZZI WIDE FLAGS
31
36
  These flags are available to all commands: --project. Run $ uffizzi
32
37
  help for details.
@@ -39,3 +44,12 @@ uffizzi-preview-create - create a preview
39
44
  To create a preview with an alternate compose file, run:
40
45
 
41
46
  $ uffizzi preview create docker-compose.uffizzi.alt.yml
47
+
48
+ To create a preview with single label, run:
49
+
50
+ $ uffizzi preview create --set-labels github.repo=my_repo
51
+
52
+ To create a preview with multiple labels, run:
53
+
54
+ $ uffizzi preview create \
55
+ --set-labels="github.repo=my_repo github.pull_request.number=23"
@@ -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\-PREVIEW\-LIST" "" "May 2022" ""
3
+ .TH "UFFIZZI\-PREVIEW\-LIST" "" "August 2022" ""
4
4
  .SH "NAME"
5
5
  \fBuffizzi\-preview\-list\fR \- list previews in a project
6
6
  .SH "SYNOPSIS"
@@ -15,6 +15,15 @@ deploying and failed previews\.
15
15
  For more information on Uffizzi previews, see:
16
16
  https://github\.com/UffizziCloud/uffizzi_cli
17
17
  .fi
18
+ .SH "FLAGS"
19
+ .nf
20
+ \-\-filter=METADATA
21
+ Metadata to filtering list of deployments\.
22
+
23
+ \-\-output=json
24
+ Use this option for a more detailed description of listed
25
+ deployments\.
26
+ .fi
18
27
  .SH "UFFIZZI WIDE FLAGS"
19
28
  .nf
20
29
  These flags are available to all commands: \-\-project\. Run $ uffizzi
@@ -29,5 +38,20 @@ To list all previews in the default project, run:
29
38
  To list all previews in a project with name my_project, run:
30
39
 
31
40
  $ uffizzi preview list \-\-project="my_project"
41
+
42
+ To list all previews in json format, run:
43
+
44
+ $ uffizzi preview list \-\-output="json"
45
+
46
+ To list all previews filtered by metadata using single
47
+ label, run:
48
+
49
+ $ uffizzi preview list \-\-filter github\.repo=my_repo
50
+
51
+ To list all previews filtered by metadata using multiple
52
+ labels, run:
53
+
54
+ $ uffizzi preview list \e
55
+ \-\-filter="github\.repo=my_repo github\.pull_request\.number=23"
32
56
  .fi
33
57
 
@@ -11,6 +11,14 @@ uffizzi-preview-list - list previews in a project
11
11
  For more information on Uffizzi previews, see:
12
12
  https://github.com/UffizziCloud/uffizzi_cli
13
13
 
14
+ ## FLAGS
15
+ --filter=METADATA
16
+ Metadata to filtering list of deployments.
17
+
18
+ --output=json
19
+ Use this option for a more detailed description of listed
20
+ deployments.
21
+
14
22
  ## UFFIZZI WIDE FLAGS
15
23
  These flags are available to all commands: --project. Run $ uffizzi
16
24
  help for details.
@@ -23,3 +31,18 @@ uffizzi-preview-list - list previews in a project
23
31
  To list all previews in a project with name my_project, run:
24
32
 
25
33
  $ uffizzi preview list --project="my_project"
34
+
35
+ To list all previews in json format, run:
36
+
37
+ $ uffizzi preview list --output="json"
38
+
39
+ To list all previews filtered by metadata using single
40
+ label, run:
41
+
42
+ $ uffizzi preview list --filter github.repo=my_repo
43
+
44
+ To list all previews filtered by metadata using multiple
45
+ labels, run:
46
+
47
+ $ uffizzi preview list \
48
+ --filter="github.repo=my_repo github.pull_request.number=23"
@@ -1,8 +1,8 @@
1
1
  .\" generated with Ronn-NG/v0.9.1
2
2
  .\" http://github.com/apjanke/ronn-ng/tree/0.9.1
3
- .TH "UPDATE" "" "May 2022" ""
3
+ .TH "UPDATE" "" "August 2022" ""
4
4
  .SH "NAME"
5
- \fBuffizzi preview update\fR \- update a preview
5
+ \fBupdate\fR \- update a preview
6
6
  .SH "SYNOPSIS"
7
7
  .nf
8
8
  uffizzi preview update [PREVIEW_ID] [COMPOSE_FILE] [UFFIZZI_WIDE_FLAG \|\.\|\.\|\.]
@@ -27,6 +27,12 @@ https://github\.com/UffizziCloud/uffizzi_cli
27
27
  [COMPOSE_FILE]
28
28
  The new compose file you want to preview\.
29
29
  .fi
30
+ .SH "FLAGS"
31
+ .nf
32
+ \-\-set\-labels=METADATA
33
+ Metadata of deployment that contains any information which can
34
+ be usefull for filtering deployments\.
35
+ .fi
30
36
  .SH "UFFIZZI WIDE FLAGS"
31
37
  .nf
32
38
  These flags are available to all commands: \-\-project\. Run $ uffizzi
@@ -38,5 +44,17 @@ The following command updates a preview with ID deployment\-67 using
38
44
  compose file docker\-compose\.alt\.yml:
39
45
 
40
46
  $ uffizzi preview update deployment\-67 docker\-compose\.alt\.yml
47
+
48
+ To update a preview with single label, run:
49
+
50
+ $ uffizzi preview update \e
51
+ deployment\-67 docker\-compose\.alt\.yml \e
52
+ \-\-set\-labels github\.repo=my_repo
53
+
54
+ To update a preview with multiple labels, run:
55
+
56
+ $ uffizzi preview update \e
57
+ deployment\-67 docker\-compose\.alt\.yml \e
58
+ \-\-set\-labels="github\.repo=my_repo github\.pull_request\.number=23"
41
59
  .fi
42
60
 
@@ -22,6 +22,11 @@ uffizzi preview update - update a preview
22
22
  [COMPOSE_FILE]
23
23
  The new compose file you want to preview.
24
24
 
25
+ ## FLAGS
26
+ --set-labels=METADATA
27
+ Metadata of deployment that contains any information which can
28
+ be usefull for filtering deployments.
29
+
25
30
  ## UFFIZZI WIDE FLAGS
26
31
  These flags are available to all commands: --project. Run $ uffizzi
27
32
  help for details.
@@ -31,3 +36,15 @@ uffizzi preview update - update a preview
31
36
  compose file docker-compose.alt.yml:
32
37
 
33
38
  $ uffizzi preview update deployment-67 docker-compose.alt.yml
39
+
40
+ To update a preview with single label, run:
41
+
42
+ $ uffizzi preview update \
43
+ deployment-67 docker-compose.alt.yml \
44
+ --set-labels github.repo=my_repo
45
+
46
+ To update a preview with multiple labels, run:
47
+
48
+ $ uffizzi preview update \
49
+ deployment-67 docker-compose.alt.yml \
50
+ --set-labels="github.repo=my_repo github.pull_request.number=23"
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
4
+ version: 0.14.0
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-28 00:00:00.000000000 Z
12
+ date: 2022-08-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: awesome_print
@@ -337,6 +337,7 @@ files:
337
337
  - lib/uffizzi/config_file.rb
338
338
  - lib/uffizzi/date_helper.rb
339
339
  - lib/uffizzi/error.rb
340
+ - lib/uffizzi/helpers/connect_helper.rb
340
341
  - lib/uffizzi/helpers/project_helper.rb
341
342
  - lib/uffizzi/promt.rb
342
343
  - lib/uffizzi/response_helper.rb
@@ -355,6 +356,8 @@ files:
355
356
  - man/uffizzi-connect-acr.ronn
356
357
  - man/uffizzi-connect-docker-hub
357
358
  - man/uffizzi-connect-docker-hub.ronn
359
+ - man/uffizzi-connect-docker-registry
360
+ - man/uffizzi-connect-docker-registry.ronn
358
361
  - man/uffizzi-connect-ecr
359
362
  - man/uffizzi-connect-ecr.ronn
360
363
  - man/uffizzi-connect-gcr