package repl
import "github.com/open-policy-agent/opa/repl"
Index ¶
Types ¶
type REPL ¶
type REPL struct {
// contains filtered or unexported fields
}
REPL represents an instance of the interactive shell.
func New ¶
func New(dataStore *storage.DataStore, policyStore *storage.PolicyStore, historyPath string, output io.Writer, outputFormat string) *REPL
New returns a new instance of the REPL.
func (*REPL) Loop ¶
func (r *REPL) Loop()
Loop will run until the user enters "exit", Ctrl+C, Ctrl+D, or an unexpected error occurs.
func (*REPL) OneShot ¶
OneShot evaluates a single line and prints the result. Returns true if caller should exit.
Source Files ¶
- Version
- v0.1.0-rc1
- Published
- Jun 3, 2016
- Platform
- js/wasm
- Imports
- 11 packages
- Last checked
- 2 minutes ago –
Tools for package owners.