(ctx context.Context, newConfig *EnvironmentConfig)
| 218 | } |
| 219 | |
| 220 | func (env *Environment) UpdateConfig(ctx context.Context, newConfig *EnvironmentConfig) error { |
| 221 | env.State.Config = newConfig |
| 222 | |
| 223 | // Re-build the base image with the new config |
| 224 | container, err := env.buildBase(ctx, env.Workdir()) |
| 225 | if err != nil { |
| 226 | return err |
| 227 | } |
| 228 | |
| 229 | if err := env.apply(ctx, container); err != nil { |
| 230 | return err |
| 231 | } |
| 232 | |
| 233 | return nil |
| 234 | } |
| 235 | |
| 236 | func (env *Environment) Run(ctx context.Context, command, shell string, useEntrypoint bool) (string, error) { |
| 237 | args := []string{} |
no test coverage detected