mirror of
https://github.com/containers/podman.git
synced 2025-12-16 12:29:28 +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>
30 lines
733 B
Go
30 lines
733 B
Go
package main
|
|
|
|
import (
|
|
"sort"
|
|
|
|
"github.com/urfave/cli"
|
|
)
|
|
|
|
var (
|
|
containerSubCommands = []cli.Command{
|
|
inspectCommand,
|
|
}
|
|
containerDescription = "Manage containers"
|
|
containerCommand = cli.Command{
|
|
Name: "container",
|
|
Usage: "Manage Containers",
|
|
Description: containerDescription,
|
|
ArgsUsage: "",
|
|
Subcommands: getContainerSubCommandsSorted(),
|
|
UseShortOptionHandling: true,
|
|
OnUsageError: usageErrorHandler,
|
|
}
|
|
)
|
|
|
|
func getContainerSubCommandsSorted() []cli.Command {
|
|
containerSubCommands = append(containerSubCommands, getContainerSubCommands()...)
|
|
sort.Sort(commandSortedAlpha{containerSubCommands})
|
|
return containerSubCommands
|
|
}
|