summaryrefslogtreecommitdiff
path: root/cmd/podman/shell_completion_test.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2021-08-04 14:59:44 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2021-08-09 13:05:49 -0400
commit170fb257295027aeb6410b86e06c38086299d2e3 (patch)
tree4f21e0320895a90cdb78df27beb97dcf16bfcb53 /cmd/podman/shell_completion_test.go
parent04ab2b16617fe2d3178eb0b461aacbcab609611e (diff)
downloadpodman-170fb257295027aeb6410b86e06c38086299d2e3.tar.gz
podman-170fb257295027aeb6410b86e06c38086299d2e3.tar.bz2
podman-170fb257295027aeb6410b86e06c38086299d2e3.zip
Alias build to buildx, so it won't fail
Add hidden --load and --progress flag as well. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'cmd/podman/shell_completion_test.go')
-rw-r--r--cmd/podman/shell_completion_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd/podman/shell_completion_test.go b/cmd/podman/shell_completion_test.go
index 9bd821d8d..792beeb19 100644
--- a/cmd/podman/shell_completion_test.go
+++ b/cmd/podman/shell_completion_test.go
@@ -33,7 +33,9 @@ func TestShellCompletionFunctions(t *testing.T) {
func checkCommand(t *testing.T, cmd *cobra.Command) {
if cmd.HasSubCommands() {
for _, childCmd := range cmd.Commands() {
- checkCommand(t, childCmd)
+ if !childCmd.Hidden {
+ checkCommand(t, childCmd)
+ }
}
// if not check if completion for that command is provided