(ctx context.Context)
| 400 | } |
| 401 | |
| 402 | func (d *Devbox) EnvVars(ctx context.Context) ([]string, error) { |
| 403 | ctx, task := trace.NewTask(ctx, "devboxEnvVars") |
| 404 | defer task.End() |
| 405 | // this only returns env variables for the shell environment excluding hooks |
| 406 | envs, err := d.ensureStateIsUpToDateAndComputeEnv(ctx, devopt.EnvOptions{}) |
| 407 | if err != nil { |
| 408 | return nil, err |
| 409 | } |
| 410 | return envir.MapToPairs(envs), nil |
| 411 | } |
| 412 | |
| 413 | func (d *Devbox) shellEnvHashKey() string { |
| 414 | // Don't make this a const so we don't use it by itself accidentally |
no test coverage detected