client: ExecCreateOptions: change ConsoleSize to a ConsoleSize type

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2025-11-05 14:39:13 +01:00
parent 443b548efa
commit de9ab07188
4 changed files with 145 additions and 80 deletions

View File

@@ -21,7 +21,10 @@ func TestExecConsoleSize(t *testing.T) {
result, err := container.Exec(ctx, apiClient, cID, []string{"stty", "size"},
func(ec *client.ExecCreateOptions) {
ec.TTY = true
ec.ConsoleSize = &[2]uint{57, 123}
ec.ConsoleSize = client.ConsoleSize{
Height: 57,
Width: 123,
}
},
)