mirror of
https://github.com/containers/podman.git
synced 2025-06-02 10:46:09 +08:00

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>
37 lines
805 B
Go
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
|
|
}
|