package
3.0.0+incompatible
Repository: https://github.com/eitol/terraform-internals.git
Documentation: pkg.go.dev

# Functions

Init tries to initialize a terminal, if Terraform is running in one, and returns an object describing what it was able to set up.
ReinitInsidePanicwrap is part of the workaround for panicwrap that produces a Streams containing a potentially-lying Stderr that might claim to be a terminal even if it's actually a pipe connected to the parent process.
StreamsForTesting is a helper for test code that is aiming to test functions that interact with the input and output streams.

# Structs

InputStream represents an input stream that might or might not be a terminal.
OutputStream represents an output stream that might or might not be connected to a terminal.
PrePanicwrapState is a horrible thing we use to work around panicwrap, related to both Streams.StateForAfterPanicWrap and ReinitInsidePanicwrap.
Streams represents a collection of three streams that each may or may not be connected to a terminal.
TestOutput is a type used to return the results from the various stream testing helpers.