-- snip -- -- -- -- -- cfshell provides a way to interactively run CFML code using the command line. This project consists on two parts: a client side written in Python which handles user interaction, and a server side script running under an application server which processes the inputs.
This port is setup to work with the Railo/Tomcat package, which must be configured and running before cfshell can be used. -- snip -- -- -- -- -- the whole idea is a bit of a hack itself, but useful nonetheless, since it saves back-and-forth with a web browser while testing things. OK? $ cfshell CFShellClient :: Version 0.3 URL: http://localhost:8080/cfshell/ Type .help for available commands >> .help CFShell v0.3 - Interactive shell for CFML by oscar arevalo - Oct 2009 Type CFML statements to evaluate interactively. If the statement generates any output, it will be displayed. Available Commands: .help : displays this message .cfscript <staments> : executes the rest of the line as cfscript code .get <template_path> : does a GET request to the given page (output supressed) .sget <template_path> : same as .get without supressing output .post <template_path> <arguments> : does a POST request to the given template (output supressed) .spost <template_path> <arguments> : same as .post without supressing output .call <template_path> : does a cfcinclude of the given template .print <statement> : surrounds with # and evaluates the rest of the string .# <statement> : same as .print .new <var_name> <cfc_path> : shorthand for <var_name> = createObject('component',<cfc_path>) .install <app_name> [<path>] : downloads and unpacks the given application from RIAForge. If no path is given, unzips to 'downloadedapps' in the local dir .exit : exits cfshell >> <cfset foo="bar"> >> #foo# bar >> #now()# {ts '2012-04-28 13:07:13'} >> <cfldap action="query" name="moo" server="bleh" start="dc=bleh" >> scope="subtree" filter="(&(objectClass=mailUser)(uid=spamtrap))" >> attributes="mail"> >> #writedump(var=moo,format="text")# <!-- ==start== dump {ts '2012-04-28 13:13:44'} format: text --> <div id="xf6"><pre>Query [Execution Time (ms):0 Recordcount:1 Cached:No] xf6mail 1 spamtrap@bleh </pre></div> <!-- ==stop== dump --> >> .exit Bye!
cfshell.tgz
Description: application/tar-gz
