[CommandBox-BE] What special treatment is there for installing CommandBox commands themselves

We noticed that the install instructions for our CommandBox commands for PresideCMS are no longer working (GitHub - pixl8/Preside-CMS-CommandBox-Commands: CommandBox commands for PresideCMS). Is there a recently released new treatment?

TIA

Dominic

Or, I could look at the source like a good citizen!

Yes. We have a special place for user contributed commands now. So they are easier to install, use and track

Hmm, sorry if they’re broken. The change is supposed to still favor a user-supplied directory over the new one. Oh wait, I just looked again and realized that you’re having people CD to the directory and then run a normal install. I thought you were having them use the “directory” parameter to the command which would have overridden the new logic :confused:

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

Yep, that’s the change. I was thinking you were having people supply a dir so it would go unnoticed for now.

I mentioned on Twitter that we’re still trying to nail some stuff down. Specifically, right now, a folder is created that matches the name of your slug in the installation directory and then your code is put INSIDE that folder. This is how NPM does it. If you look at a Node module, all their code is in the root of their repo, but it installs in a folder named after their module.

However this has caused problems for packages that require a specific folder name to satisfy ColdFusion mappings like the ColdBox Platform. The slug name was coldbox-platform so it was put in a folder called “coldbox-platform/coldbox” which obviously didn’t work.

So, basically Luis and I need to finish arm wrestling over how to solve this right now. We’re trying to decide whether to force installation locations and make them be unique (like Node), or allow package authors to determine the name of the folder their package installs to but have potential overlaps (gives more freedom). Each option comes with drawbacks. (For instance, where was it installed to so you can uninstall it later? What if two authors choose the name folder?)

But that’s why we’re still in pre-release so we can finish ironing these things out :slight_smile: Please continue to provide feedback. Also, CommandBox questions can/should go on our new CommandBox mailing list:

https://groups.google.com/a/ortussolutions.com/forum/#!forum/commandbox

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com