~/.CommandBox/cfml/modules/that contains a
ModuleConfig.cfcfile. The minimum contents of your module config is:
commandsfolder inside your module for your command to live in. Each CFC in this folder will be registered as a command. The only requirement for a command CFC is that is has a
reloadcommand from the shell, and then the name of the new command is the same as the name of the CFC. In this case, you would run the command above like so:
Hello World!to the console. Anything after
hellowill be passed to your
run()function as parameters.
say hellocreate CFCs that are nested in subfolders, for example:
~/.CommandBox/cfml/modules/test/commands/say/Hello.cfcThe contents of the
Hello.cfcwould not change, but the namespace will match the folder name by convention. The namespaced command would be called like so:
reloadcommand (aliased as
r) to reload the shell. Your changes will immediately be available. Using the up arrow to access the shell's history can also be useful here.
variables.wireboxvariable as well as their own
getInstance()method which proxies to WireBox to get objects.