aboutsummaryrefslogtreecommitdiff
path: root/cmd/podman/images
diff options
context:
space:
mode:
authorcdoern <cdoern@redhat.com>2021-06-25 14:26:33 -0400
committercdoern <cdoern@redhat.com>2021-08-09 09:21:47 -0400
commita4bdc67c450e67ec54f2bcfdb9a347907e405390 (patch)
treebbeb1c8195d5c138c6800b7898a0d976fc79f39c /cmd/podman/images
parent04ab2b16617fe2d3178eb0b461aacbcab609611e (diff)
downloadpodman-a4bdc67c450e67ec54f2bcfdb9a347907e405390.tar.gz
podman-a4bdc67c450e67ec54f2bcfdb9a347907e405390.tar.bz2
podman-a4bdc67c450e67ec54f2bcfdb9a347907e405390.zip
Added autocompletion for images and system connections
[NO TESTS NEEDED] image scp should autocomplete images and system connections since the args can be either. Made a new function, common.AutocompleteScp Signed-off-by: cdoern <cdoern@redhat.com>
Diffstat (limited to 'cmd/podman/images')
-rw-r--r--cmd/podman/images/scp.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/images/scp.go b/cmd/podman/images/scp.go
index a47d01995..176563440 100644
--- a/cmd/podman/images/scp.go
+++ b/cmd/podman/images/scp.go
@@ -33,7 +33,7 @@ var (
Short: "securely copy images",
RunE: scp,
Args: cobra.RangeArgs(1, 2),
- ValidArgsFunction: common.AutocompleteImages,
+ ValidArgsFunction: common.AutocompleteScp,
Example: `podman image scp myimage:latest otherhost::`,
}
)