@@ -36,7 +36,7 @@ type execOpts struct {
36
36
environment []string
37
37
workingDir string
38
38
39
- tty bool
39
+ noTty bool
40
40
user string
41
41
detach bool
42
42
index int
@@ -68,7 +68,7 @@ func execCommand(p *projectOptions, backend compose.Service) *cobra.Command {
68
68
runCmd .Flags ().IntVar (& opts .index , "index" , 1 , "index of the container if there are multiple instances of a service [default: 1]." )
69
69
runCmd .Flags ().BoolVarP (& opts .privileged , "privileged" , "" , false , "Give extended privileges to the process." )
70
70
runCmd .Flags ().StringVarP (& opts .user , "user" , "u" , "" , "Run the command as this user." )
71
- runCmd .Flags ().BoolVarP (& opts .tty , "" , "T" , false , "Disable pseudo-tty allocation. By default `docker compose exec` allocates a TTY." )
71
+ runCmd .Flags ().BoolVarP (& opts .noTty , "" , "T" , false , "Disable pseudo-TTY allocation. By default `docker compose exec` allocates a TTY." )
72
72
runCmd .Flags ().StringVarP (& opts .workingDir , "workdir" , "w" , "" , "Path to workdir directory for this command." )
73
73
74
74
runCmd .Flags ().SetInterspersed (false )
@@ -85,7 +85,7 @@ func runExec(ctx context.Context, backend compose.Service, opts execOpts) error
85
85
Service : opts .service ,
86
86
Command : opts .command ,
87
87
Environment : opts .environment ,
88
- Tty : ! opts .tty ,
88
+ Tty : ! opts .noTty ,
89
89
User : opts .user ,
90
90
Privileged : opts .privileged ,
91
91
Index : opts .index ,
0 commit comments