You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The detailed exit code was handled in #55, but leaving this open as an atomic way to Plan and get plan JSON would be nice, possibly as a convenience method.
paultyng
changed the title
Add to Plan method return values
Add convenience method to Plan and return JSON as single func
Aug 29, 2020
One option is supporting the exit code:
https://www.terraform.io/docs/commands/plan.html#detailed-exitcode
The
Plan
signature could be changed to:Plan(...) (changesPresent bool, err error)
or something similar to surface the exit code data.Another option is just returning the actual JSON plan always from the
Plan
method. In programmatic usage you probably will want it frequently anyway.We could optionally do both of these in the return values.
The text was updated successfully, but these errors were encountered: