Documentation ¶
Overview ¶
Package repl provides the structs and functions necessary to run REPL for Terraform. The REPL allows experimentation of Terraform interpolations without having to run a Terraform configuration.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrSessionExit = errors.New("session exit")
ErrSessionExit is a special error result that should be checked for from Handle to signal a graceful exit.
Functions ¶
func FormatResult ¶
FormatResult formats the given result value for human-readable output.
The value must currently be a string, list, map, and any nested values with those same types.
Types ¶
type Session ¶
type Session struct { // Interpolater is used for calculating interpolations Interpolater *terraform.Interpolater }
Session represents the state for a single REPL session.
Click to show internal directories.
Click to hide internal directories.