[CommandBox-3.5.0]: "coldbox create app --wizard" generates unexpected outcome

27 views
Skip to first unread message

Ancient Programmer

unread,
Mar 27, 2017, 1:49:04 PM3/27/17
to ColdBox Platform
Using CommandBox, I was trying to create a skeleton without ColdBox in it.
Here's the command I ran:

c:\test>box coldbox create app --wizard
Enter name (The name of the app you want to create) :test
Enter skeleton (The application skeleton you want to use) :advancedscript
Enter init (Would you like to init this as a CommandBox Package) :(Yes/No) : no
Enter installColdBox (Install the latest stable version of ColdBox from ForgeBox) :(Yes/No) : no
Enter installColdBoxBE (Install the bleeding edge version of ColdBox from ForgeBox) :(Yes/No) : no
Enter installTestBox (Install the latest stable version of TestBox from ForgeBox) :(Yes/No) : no


However, it generated /coldbox inside the installation folder even though I answered "no" to install ColdBox.

I also wondered if there is a command to remove /coldbox using CommandBox. I knew that I could just delete the /coldbox folder, but I thought I wanted to do it with CommandBox.


Thanks!

Ancient Programmer

unread,
Mar 27, 2017, 1:54:17 PM3/27/17
to ColdBox Platform
One more thing... appName in ColdBox.cfc also didn't get populated correctly.

br...@bradwood.com

unread,
Mar 27, 2017, 3:54:08 PM3/27/17
to col...@googlegroups.com
Hi, the templates didn't used to install ColdBox by default unless you specifically asked for it.  When Luis revamped them to include a better box.json, he added Coldbox as a dependency to the box.json so now you actually get ColdBox regardless of whether or not you use the "--installColdBox" flag since it's one of the dependencies of the main package.  
 
There's currently no way to tell CommandBox to ignore dependencies, but the official way to remove a dependency would be with the "uninstall" command.  This will delete the folder of code as well as remove it from the box.json.
 
CommandBox> uninstall coldbox

Thanks!

~Brad

ColdBox/CommandBox Developer Advocate
Ortus Solutions, Corp

E-mail: br...@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com 
 
 
--------- Original Message ---------
--
--
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
For News, visit http://blog.coldbox.org
For Documentation, visit http://wiki.coldbox.org
For Bug Reports, visit https://ortussolutions.atlassian.net/browse/COLDBOX
---
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to coldbox+u...@googlegroups.com.
To post to this group, send email to col...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/coldbox/d9692432-f011-4800-af5b-60ac8f4161a2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

br...@bradwood.com

unread,
Mar 27, 2017, 3:57:14 PM3/27/17
to col...@googlegroups.com
I'm honestly not even sure what the appname in the config is used for these days.  Please feel free to submit a pull request to fix this.  You would need to modify each of our application templates in Github:
 
 
And then modify the "coldbox create app" command to do the replacement:
 

Thanks!

~Brad

ColdBox/CommandBox Developer Advocate
Ortus Solutions, Corp

E-mail: br...@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com 
 
 
--------- Original Message ---------
Subject: [coldbox:26315] Re: [CommandBox-3.5.0]: "coldbox create app --wizard" generates unexpected outcome
From: "Ancient Programmer" <lak...@gmail.com>
Date: 3/27/17 12:54 pm
To: "ColdBox Platform" <col...@googlegroups.com>

One more thing... appName in ColdBox.cfc also didn't get populated correctly.

 

--
--
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
For News, visit http://blog.coldbox.org
For Documentation, visit http://wiki.coldbox.org
For Bug Reports, visit https://ortussolutions.atlassian.net/browse/COLDBOX
---
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to coldbox+u...@googlegroups.com.
To post to this group, send email to col...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages