diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-01-20 13:35:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-20 13:35:18 +0100 |
commit | ef2f6f9f3ee3a54ffc3b9cd0740230b60dcc8d6a (patch) | |
tree | d2b6848b9fcdbc34911bdfcc085ade05db2742fa /cmd/podman/image.go | |
parent | 74b85098cf7f6e2809f9075475f4fae44c0f011c (diff) | |
parent | 6f6cf86d8f1b916940ffc6eb79a763140bb86eca (diff) | |
download | podman-ef2f6f9f3ee3a54ffc3b9cd0740230b60dcc8d6a.tar.gz podman-ef2f6f9f3ee3a54ffc3b9cd0740230b60dcc8d6a.tar.bz2 podman-ef2f6f9f3ee3a54ffc3b9cd0740230b60dcc8d6a.zip |
Merge pull request #2184 from baude/remotemaskcommands
Mask unimplemeted commands for remote client
Diffstat (limited to 'cmd/podman/image.go')
-rw-r--r-- | cmd/podman/image.go | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/cmd/podman/image.go b/cmd/podman/image.go index 557fc1056..a51a90b0e 100644 --- a/cmd/podman/image.go +++ b/cmd/podman/image.go @@ -1,36 +1,36 @@ package main import ( + "sort" + "github.com/urfave/cli" ) var ( imageSubCommands = []cli.Command{ - buildCommand, historyCommand, - importCommand, imageExistsCommand, inspectCommand, - loadCommand, lsImagesCommand, pruneImagesCommand, pullCommand, - pushCommand, rmImageCommand, - saveCommand, tagCommand, - trustCommand, - signCommand, } - imageDescription = "Manage images" imageCommand = cli.Command{ Name: "image", Usage: "Manage images", Description: imageDescription, ArgsUsage: "", - Subcommands: imageSubCommands, + Subcommands: getImageSubCommandsSorted(), UseShortOptionHandling: true, OnUsageError: usageErrorHandler, } ) + +func getImageSubCommandsSorted() []cli.Command { + imageSubCommands = append(imageSubCommands, getImageSubCommands()...) + sort.Sort(commandSortedAlpha{imageSubCommands}) + return imageSubCommands +} |