MCPcopy Create free account
hub / github.com/jetify-com/devbox / EnvVars

Method EnvVars

internal/devbox/devbox.go:402–411  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

400}
401
402func (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
413func (d *Devbox) shellEnvHashKey() string {
414 // Don't make this a const so we don't use it by itself accidentally

Callers 1

runIntegrateVSCodeCmdFunction · 0.80

Calls 3

MapToPairsFunction · 0.92
EndMethod · 0.80

Tested by

no test coverage detected