Name | Type | Required | Default | Hint |
name | string | true | The name of the CFML function to run |
I am a shortcut to run single CFML functions via the REPL. This example runs the now() function.
It is the equivalent to "repl now()".
cfml nowAs a handy shortcut, you can invoke the "cfml" command by simply typing the name of the CFML
#nowWhen you pass parameters into this command, they will be passed directly along to the CFML function.
#hash mypassThis really gets useful when you start piping input into CFML functions. Like other CFML commands, piped
#reverse abc
#listGetAt www.foo.com 2 . | #ucase | #reverseSince this command defers to the REPL for execution, complex return values such as arrays or structs will be
#arrayAvg [1,2,3]You must use positional parameters if you are piping data to a CFML function, but you do have the option to use
package list --JSON | #structFind dependencies | #structKeyArray
#directoryList path=D:\\ listInfo=name