Skip to content

Commit

Permalink
Merge pull request #1437 from carolynvs/reference-short-flag
Browse files Browse the repository at this point in the history
Add a short flag for --reference
  • Loading branch information
carolynvs authored Feb 3, 2021
2 parents ec4cd9d + d54883c commit 991a5a2
Show file tree
Hide file tree
Showing 18 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion cmd/porter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func addDeprecatedTagFlag(f *pflag.FlagSet, opts *porter.BundlePullOptions) {
}

func addReferenceFlag(f *pflag.FlagSet, opts *porter.BundlePullOptions) {
f.StringVar(&opts.Reference, "reference", "",
f.StringVarP(&opts.Reference, "reference", "r", "",
"Use a bundle in an OCI registry specified by the given reference.")
}

Expand Down
2 changes: 1 addition & 1 deletion docs/content/cli/archive.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ porter archive FILENAME --reference PUBLISHED_BUNDLE [flags]
--force Force a fresh pull of the bundle
-h, --help help for archive
--insecure-registry Don't require TLS for the registry
--reference string Use a bundle in an OCI registry specified by the given reference.
-r, --reference string Use a bundle in an OCI registry specified by the given reference.
```

### Options inherited from parent commands
Expand Down
2 changes: 1 addition & 1 deletion docs/content/cli/bundles_archive.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ porter bundles archive FILENAME --reference PUBLISHED_BUNDLE [flags]
--force Force a fresh pull of the bundle
-h, --help help for archive
--insecure-registry Don't require TLS for the registry
--reference string Use a bundle in an OCI registry specified by the given reference.
-r, --reference string Use a bundle in an OCI registry specified by the given reference.
```

### Options inherited from parent commands
Expand Down
2 changes: 1 addition & 1 deletion docs/content/cli/bundles_explain.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ porter bundles explain [flags]
-h, --help help for explain
--insecure-registry Don't require TLS for the registry
-o, --output string Specify an output format. Allowed values: table, json, yaml (default "table")
--reference string Use a bundle in an OCI registry specified by the given reference.
-r, --reference string Use a bundle in an OCI registry specified by the given reference.
```

### Options inherited from parent commands
Expand Down
2 changes: 1 addition & 1 deletion docs/content/cli/bundles_inspect.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ porter bundles inspect [flags]
-h, --help help for inspect
--insecure-registry Don't require TLS for the registry
-o, --output string Specify an output format. Allowed values: table, json, yaml (default "table")
--reference string Use a bundle in an OCI registry specified by the given reference.
-r, --reference string Use a bundle in an OCI registry specified by the given reference.
```

### Options inherited from parent commands
Expand Down
2 changes: 1 addition & 1 deletion docs/content/cli/bundles_install.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ porter bundles install [INSTALLATION] [flags]
--insecure-registry Don't require TLS for the registry
--param strings Define an individual parameter in the form NAME=VALUE. Overrides parameters otherwise set via --parameter-set. May be specified multiple times.
-p, --parameter-set strings Name of a parameter set file for the bundle. May be either a named set of parameters or a filepath, and specified multiple times.
--reference string Use a bundle in an OCI registry specified by the given reference.
-r, --reference string Use a bundle in an OCI registry specified by the given reference.
```

### Options inherited from parent commands
Expand Down
2 changes: 1 addition & 1 deletion docs/content/cli/bundles_invoke.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ porter bundles invoke [INSTALLATION] --action ACTION [flags]
--insecure-registry Don't require TLS for the registry
--param strings Define an individual parameter in the form NAME=VALUE. Overrides parameters otherwise set via --parameter-set. May be specified multiple times.
-p, --parameter-set strings Name of a parameter set file for the bundle. May be either a named set of parameters or a filepath, and specified multiple times.
--reference string Use a bundle in an OCI registry specified by the given reference.
-r, --reference string Use a bundle in an OCI registry specified by the given reference.
```

### Options inherited from parent commands
Expand Down
2 changes: 1 addition & 1 deletion docs/content/cli/bundles_uninstall.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ porter bundles uninstall [INSTALLATION] [flags]
--insecure-registry Don't require TLS for the registry
--param strings Define an individual parameter in the form NAME=VALUE. Overrides parameters otherwise set via --parameter-set. May be specified multiple times.
-p, --parameter-set strings Name of a parameter set file for the bundle. May be either a named set of parameters or a filepath, and specified multiple times.
--reference string Use a bundle in an OCI registry specified by the given reference.
-r, --reference string Use a bundle in an OCI registry specified by the given reference.
```

### Options inherited from parent commands
Expand Down
2 changes: 1 addition & 1 deletion docs/content/cli/bundles_upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ porter bundles upgrade [INSTALLATION] [flags]
--insecure-registry Don't require TLS for the registry
--param strings Define an individual parameter in the form NAME=VALUE. Overrides parameters otherwise set via --parameter-set. May be specified multiple times.
-p, --parameter-set strings Name of a parameter set file for the bundle. May be either a named set of parameters or a filepath, and specified multiple times.
--reference string Use a bundle in an OCI registry specified by the given reference.
-r, --reference string Use a bundle in an OCI registry specified by the given reference.
```

### Options inherited from parent commands
Expand Down
2 changes: 1 addition & 1 deletion docs/content/cli/credentials_generate.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ porter credentials generate [NAME] [flags]
--force Force a fresh pull of the bundle
-h, --help help for generate
--insecure-registry Don't require TLS for the registry
--reference string Use a bundle in an OCI registry specified by the given reference.
-r, --reference string Use a bundle in an OCI registry specified by the given reference.
```

### Options inherited from parent commands
Expand Down
2 changes: 1 addition & 1 deletion docs/content/cli/explain.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ porter explain [flags]
-h, --help help for explain
--insecure-registry Don't require TLS for the registry
-o, --output string Specify an output format. Allowed values: table, json, yaml (default "table")
--reference string Use a bundle in an OCI registry specified by the given reference.
-r, --reference string Use a bundle in an OCI registry specified by the given reference.
```

### Options inherited from parent commands
Expand Down
2 changes: 1 addition & 1 deletion docs/content/cli/inspect.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ porter inspect [flags]
-h, --help help for inspect
--insecure-registry Don't require TLS for the registry
-o, --output string Specify an output format. Allowed values: table, json, yaml (default "table")
--reference string Use a bundle in an OCI registry specified by the given reference.
-r, --reference string Use a bundle in an OCI registry specified by the given reference.
```

### Options inherited from parent commands
Expand Down
2 changes: 1 addition & 1 deletion docs/content/cli/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ porter install [INSTALLATION] [flags]
--insecure-registry Don't require TLS for the registry
--param strings Define an individual parameter in the form NAME=VALUE. Overrides parameters otherwise set via --parameter-set. May be specified multiple times.
-p, --parameter-set strings Name of a parameter set file for the bundle. May be either a named set of parameters or a filepath, and specified multiple times.
--reference string Use a bundle in an OCI registry specified by the given reference.
-r, --reference string Use a bundle in an OCI registry specified by the given reference.
```

### Options inherited from parent commands
Expand Down
2 changes: 1 addition & 1 deletion docs/content/cli/invoke.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ porter invoke [INSTALLATION] --action ACTION [flags]
--insecure-registry Don't require TLS for the registry
--param strings Define an individual parameter in the form NAME=VALUE. Overrides parameters otherwise set via --parameter-set. May be specified multiple times.
-p, --parameter-set strings Name of a parameter set file for the bundle. May be either a named set of parameters or a filepath, and specified multiple times.
--reference string Use a bundle in an OCI registry specified by the given reference.
-r, --reference string Use a bundle in an OCI registry specified by the given reference.
```

### Options inherited from parent commands
Expand Down
2 changes: 1 addition & 1 deletion docs/content/cli/parameters_generate.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ porter parameters generate [NAME] [flags]
--force Force a fresh pull of the bundle
-h, --help help for generate
--insecure-registry Don't require TLS for the registry
--reference string Use a bundle in an OCI registry specified by the given reference.
-r, --reference string Use a bundle in an OCI registry specified by the given reference.
```

### Options inherited from parent commands
Expand Down
2 changes: 1 addition & 1 deletion docs/content/cli/publish.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ porter publish [flags]
-f, --file porter.yaml Path to the Porter manifest. Defaults to porter.yaml in the current directory.
-h, --help help for publish
--insecure-registry Don't require TLS for the registry
--reference string Use a bundle in an OCI registry specified by the given reference.
-r, --reference string Use a bundle in an OCI registry specified by the given reference.
--registry string Override the registry portion of the bundle reference, e.g. docker.io, myregistry.com/myorg
--tag string Override the Docker tag portion of the bundle reference, e.g. latest, v0.1.1
```
Expand Down
2 changes: 1 addition & 1 deletion docs/content/cli/uninstall.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ porter uninstall [INSTALLATION] [flags]
--insecure-registry Don't require TLS for the registry
--param strings Define an individual parameter in the form NAME=VALUE. Overrides parameters otherwise set via --parameter-set. May be specified multiple times.
-p, --parameter-set strings Name of a parameter set file for the bundle. May be either a named set of parameters or a filepath, and specified multiple times.
--reference string Use a bundle in an OCI registry specified by the given reference.
-r, --reference string Use a bundle in an OCI registry specified by the given reference.
```

### Options inherited from parent commands
Expand Down
2 changes: 1 addition & 1 deletion docs/content/cli/upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ porter upgrade [INSTALLATION] [flags]
--insecure-registry Don't require TLS for the registry
--param strings Define an individual parameter in the form NAME=VALUE. Overrides parameters otherwise set via --parameter-set. May be specified multiple times.
-p, --parameter-set strings Name of a parameter set file for the bundle. May be either a named set of parameters or a filepath, and specified multiple times.
--reference string Use a bundle in an OCI registry specified by the given reference.
-r, --reference string Use a bundle in an OCI registry specified by the given reference.
```

### Options inherited from parent commands
Expand Down

0 comments on commit 991a5a2

Please sign in to comment.