mirror of https://github.com/docker/cli.git
Use spf13/cobra for docker history
This fix is part of the effort to convert commands to spf13/cobra #23211. Thif fix coverted command `docker history` to use spf13/cobra Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
parent
b4421407a0
commit
0090463cab
|
@ -43,6 +43,7 @@ func NewCobraAdaptor(clientFlags *cliflags.ClientFlags) CobraAdaptor {
|
||||||
container.NewStopCommand(dockerCli),
|
container.NewStopCommand(dockerCli),
|
||||||
container.NewUnpauseCommand(dockerCli),
|
container.NewUnpauseCommand(dockerCli),
|
||||||
container.NewWaitCommand(dockerCli),
|
container.NewWaitCommand(dockerCli),
|
||||||
|
image.NewHistoryCommand(dockerCli),
|
||||||
image.NewRemoveCommand(dockerCli),
|
image.NewRemoveCommand(dockerCli),
|
||||||
image.NewSearchCommand(dockerCli),
|
image.NewSearchCommand(dockerCli),
|
||||||
network.NewNetworkCommand(dockerCli),
|
network.NewNetworkCommand(dockerCli),
|
||||||
|
|
1
usage.go
1
usage.go
|
@ -14,7 +14,6 @@ var DockerCommandUsage = []Command{
|
||||||
{"cp", "Copy files/folders between a container and the local filesystem"},
|
{"cp", "Copy files/folders between a container and the local filesystem"},
|
||||||
{"events", "Get real time events from the server"},
|
{"events", "Get real time events from the server"},
|
||||||
{"exec", "Run a command in a running container"},
|
{"exec", "Run a command in a running container"},
|
||||||
{"history", "Show the history of an image"},
|
|
||||||
{"images", "List images"},
|
{"images", "List images"},
|
||||||
{"import", "Import the contents from a tarball to create a filesystem image"},
|
{"import", "Import the contents from a tarball to create a filesystem image"},
|
||||||
{"info", "Display system-wide information"},
|
{"info", "Display system-wide information"},
|
||||||
|
|
Loading…
Reference in New Issue