Skip to content

Add convenience method to Plan and return JSON as single func #40

@paultyng

Description

@paultyng

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions