Skip to content

Commit

Permalink
Fix read-write flag for docker credentials (#395)
Browse files Browse the repository at this point in the history
Co-authored-by: Mike Biondi <[email protected]>
  • Loading branch information
biondizzle and Mike Biondi authored Feb 1, 2024
1 parent 3ca21df commit 6a58e4b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cmd/containerRegistry.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ var (
crGetLong = `Display information for a specific VPC`
crGetExample = `
# Full example
vultr-cli container-registry get e8ba183d-df3b-487a-acbf-f6c06aa32468
vultr-cli container-registry get e8ba183d-df3b-487a-acbf-f6c06aa32468
# Shortened example with aliases
vultr-cli cr g e8ba183d-df3b-487a-acbf-f6c06aa32468
`
crUpdateLong = `Update an existing container registry`
crUpdateExample = `
# Full example
vultr-cli container-registry update 835fd402-e0eb-47aa-a5a9-a9885feea1cf --plan="premium" --public="true"
vultr-cli container-registry update 835fd402-e0eb-47aa-a5a9-a9885feea1cf --plan="premium" --public="true"
# Shortened example with aliases
vultr-cli cr u 835fd402-e0eb-47aa-a5a9-a9885feea1cf -p="premium" -b="true"
Expand All @@ -64,7 +64,7 @@ var (
vultr-cli container-registry delete b20fa61e-4abb-46c5-92c3-8700150e1f9a
#Shortened example with aliases
vultr-cli cr d b20fa61e-4abb-46c5-92c3-8700150e1f9a
vultr-cli cr d b20fa61e-4abb-46c5-92c3-8700150e1f9a
`
crListLong = `List all container registries on the account`
crListExample = `
Expand All @@ -84,7 +84,7 @@ var (
//nolint: gosec
crCredentialsDockerExample = `
# Full example
vultr-cli container-registry credentials docker d24cfdcc-0534-4700-bf88-8ee48f20064e
vultr-cli container-registry credentials docker d24cfdcc-0534-4700-bf88-8ee48f20064e
`
crRepoLong = `Access commands for individual repositories on a container registry`
crRepoExample = `
Expand Down Expand Up @@ -124,7 +124,7 @@ var (
vultr-cli container-registry regions
# Shortened example with aliases
vultr-cli cr r
vultr-cli cr r
`
)

Expand Down Expand Up @@ -405,7 +405,7 @@ var crCredentialsDocker = &cobra.Command{
Run: func(cmd *cobra.Command, args []string) {
id := args[0]
expiry, _ := cmd.Flags().GetInt("expiry-seconds")
access, _ := cmd.Flags().GetBool("write-access")
access, _ := cmd.Flags().GetBool("read-write")

options := &govultr.DockerCredentialsOpt{
ExpirySeconds: govultr.IntToIntPtr(expiry),
Expand Down

0 comments on commit 6a58e4b

Please sign in to comment.