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 FormatValue ¶ added in v0.14.0
FormatValue formats a value in a way that resembles Terraform language syntax and uses the type conversion functions where necessary to indicate exactly what type it is given, so that equality test failures can be quickly understood.
Types ¶
type Session ¶
type Session struct { // Scope is the evaluation scope where expressions will be evaluated. Scope *lang.Scope }
Session represents the state for a single REPL session.
Click to show internal directories.
Click to hide internal directories.