Files
podman/cmd/podman/image.go
baude 6f6cf86d8f 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>
2019-01-19 13:12:32 -06:00

37 lines
805 B
Go

package main
import (
"sort"
"github.com/urfave/cli"
)
var (
imageSubCommands = []cli.Command{
historyCommand,
imageExistsCommand,
inspectCommand,
lsImagesCommand,
pruneImagesCommand,
pullCommand,
rmImageCommand,
tagCommand,
}
imageDescription = "Manage images"
imageCommand = cli.Command{
Name: "image",
Usage: "Manage images",
Description: imageDescription,
ArgsUsage: "",
Subcommands: getImageSubCommandsSorted(),
UseShortOptionHandling: true,
OnUsageError: usageErrorHandler,
}
)
func getImageSubCommandsSorted() []cli.Command {
imageSubCommands = append(imageSubCommands, getImageSubCommands()...)
sort.Sort(commandSortedAlpha{imageSubCommands})
return imageSubCommands
}