Skip to content

Commit

Permalink
Add REPL support for variable bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
TristonianJones committed Apr 12, 2023
1 parent 5a5be44 commit 1ac7476
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion repl/evaluator.go
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ func newExtensionOption(extType string) (*extensionOption, error) {
case "encoders":
extOption = ext.Encoders()
default:
return nil, fmt.Errorf("Unknown option: %s. Available options are: ['strings', 'protos', 'math', 'encoders', 'all']", op)
return nil, fmt.Errorf("Unknown option: %s. Available options are: ['bindings', 'optional', 'strings', 'protos', 'math', 'encoders', 'all']", op)
}

return &extensionOption{extensionType: extType, option: extOption}, nil
Expand Down
2 changes: 1 addition & 1 deletion repl/evaluator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -864,7 +864,7 @@ func TestProcessOptionError(t *testing.T) {
"'bogus'",
},
},
errorMsg: "extension: Unknown option: 'bogus'. Available options are: ['strings', 'protos', 'math', 'encoders', 'all']",
errorMsg: "extension: Unknown option: 'bogus'. Available options are: ['bindings', 'optional', 'strings', 'protos', 'math', 'encoders', 'all']",
},
}

Expand Down

0 comments on commit 1ac7476

Please sign in to comment.