summaryrefslogtreecommitdiff
path: root/cmd/podman/image.go
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2019-01-18 09:09:18 -0600
committerbaude <bbaude@redhat.com>2019-01-19 13:12:32 -0600
commit6f6cf86d8f1b916940ffc6eb79a763140bb86eca (patch)
treeb66d5822c0e9878db951acc4fb00bf7578568bfd /cmd/podman/image.go
parente3dc6609d05695e649e76d4505e4761cafebcef6 (diff)
downloadpodman-6f6cf86d8f1b916940ffc6eb79a763140bb86eca.tar.gz
podman-6f6cf86d8f1b916940ffc6eb79a763140bb86eca.tar.bz2
podman-6f6cf86d8f1b916940ffc6eb79a763140bb86eca.zip
Mask unimplemeted commands for remote client
Masking main level, image, and container commands that are not yet implemented for the remote client. As each command is completed, be sure to unmask it. Also, masking podman command line switches that are not applicable to the remote client. Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'cmd/podman/image.go')
-rw-r--r--cmd/podman/image.go18
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
+}