lucee.Componentcommandbox.system.modules_app.system-commands.commands.repl
The REPL (Read-Eval-Print-Loop) command allows you to write and execute a-la-carte CFML code right in your console. Variables set in will be available on subsequent lines. . {code:bash} repl {code} . By default we surround your code in a 'cfscript' tag, but you can also use the 'script=false' argument to use the REPL console in tag mode. . {code:bash} repl --!script {code} . The REPL has a separate command history for scripts and tags. Use the up-arrow to look at previous lines in the history. The REPLs histories can be managed by the "history" command.
Property Summary | ||||
---|---|---|---|---|
type | property | default | serializable | required |
any
|
REPLParser
|
true
|
false
|
|
any
|
REPLScriptHistoryFile
|
true
|
false
|
|
any
|
REPLTagHistoryFile
|
true
|
false
|
|
any
|
commandHistoryFile
|
true
|
false
|
Method Summary | |
---|---|
private any
|
determineVariableType([any contents])
Returns variable type if it can be determined. |
private any
|
resetShell()
|
any
|
run([string input], [boolean script='true'], [string directory=''])
|
Methods inherited from class lucee.Component |
---|
None |
Property Detail |
---|
access
- publicrequired
- falsereturntype
- anyinject
- REPLParserserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- REPLScriptHistoryFile@constantsserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- REPLTagHistoryFile@constantsserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- commandHistoryFile@constantsserializable
- trueMethod Detail |
---|
Returns variable type if it can be determined
contents
input
- Optional CFML to execute. If provided, the command exits immediatley.script
- Run REPL in script or tag modedirectory
- Directory to start the REPL in (defaults to current working directory).