MCPcopy Create free account
hub / github.com/coder/coder / showPlan

Method showPlan

provisioner/terraform/executor.go:462–468  ·  view source on GitHub ↗

showPlan must only be called while the lock is held.

(ctx, killCtx context.Context, stdoutWriter, stderrWriter io.WriteCloser, planfilePath string)

Source from the content-addressed store, hash-verified

460
461// showPlan must only be called while the lock is held.
462func (e *executor) showPlan(ctx, killCtx context.Context, stdoutWriter, stderrWriter io.WriteCloser, planfilePath string) error {
463 ctx, span := e.server.startTrace(ctx, tracing.FuncName())
464 defer span.End()
465
466 args := []string{"show", "-no-color", planfilePath}
467 return e.execWriteOutput(ctx, killCtx, args, e.basicEnv(), stdoutWriter, stderrWriter)
468}
469
470// graph must only be called while the lock is held.
471func (e *executor) graph(ctx, killCtx context.Context) (string, error) {

Callers 1

logDriftMethod · 0.95

Calls 4

execWriteOutputMethod · 0.95
basicEnvMethod · 0.95
FuncNameFunction · 0.92
startTraceMethod · 0.45

Tested by

no test coverage detected