mirror of
https://github.com/moby/moby.git
synced 2025-12-06 07:41:18 +03:00
Move attach command to cobra.
Signed-off-by: Zhang Wei <zhangwei555@huawei.com>
This commit is contained in:
@@ -62,10 +62,12 @@ func (cli *DockerCli) RegistryAuthenticationPrivilegedFunc(index *registrytypes.
|
||||
|
||||
func (cli *DockerCli) resizeTty(ctx context.Context, id string, isExec bool) {
|
||||
height, width := cli.GetTtySize()
|
||||
cli.resizeTtyTo(ctx, id, height, width, isExec)
|
||||
cli.ResizeTtyTo(ctx, id, height, width, isExec)
|
||||
}
|
||||
|
||||
func (cli *DockerCli) resizeTtyTo(ctx context.Context, id string, height, width int, isExec bool) {
|
||||
// ResizeTtyTo resizes tty to specific height and width
|
||||
// TODO: this can be unexported again once all container related commands move to package container
|
||||
func (cli *DockerCli) ResizeTtyTo(ctx context.Context, id string, height, width int, isExec bool) {
|
||||
if height == 0 && width == 0 {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user