(opts api.RunOptions)
| 214 | } |
| 215 | |
| 216 | func prepareBuildOptions(opts api.RunOptions) *api.BuildOptions { |
| 217 | if opts.Build == nil { |
| 218 | return nil |
| 219 | } |
| 220 | // Create a copy of build options and restrict to only the target service |
| 221 | buildOptsCopy := *opts.Build |
| 222 | buildOptsCopy.Services = []string{opts.Service} |
| 223 | return &buildOptsCopy |
| 224 | } |
| 225 | |
| 226 | func applyRunOptions(project *types.Project, service *types.ServiceConfig, opts api.RunOptions) { |
| 227 | service.Tty = opts.Tty |