Skip to content

Commit 76512b3

Browse files
committed
fixes on boxlang updates
1 parent fff97ed commit 76512b3

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
## [Unreleased]
1111

12+
### Fixed
13+
14+
- More fixes for `boxlang` arguments
15+
1216
## [7.6.0] - 2025-04-28
1317

1418
### Added

commands/coldbox/create/app-wizard.cfc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,13 @@ component extends="app" aliases="" {
77
* @name The name of the app you want to create
88
* @skeleton The application skeleton you want to use (AdvancedScript, rest, rest-hmvc, Simple, SuperSimple)
99
* @init Init this as a package
10+
* @boxlang Is this a BoxLang project?
1011
**/
11-
function run( required name, skeleton ){
12+
function run(
13+
required name,
14+
skeleton,
15+
boolean boxlang = isBoxLangProject( getCWD() )
16+
){
1217
arguments.directory = getCWD();
1318
if ( !confirm( "Are you currently inside the ""/#name#"" folder (if ""No"" we will create it)? [y/n]" ) ) {
1419
arguments.directory = getCWD() & name & "/";

commands/coldbox/create/app.cfc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ component extends="coldbox-cli.models.BaseCommand" {
6565
* @initWizard Run the init creation package wizard
6666
* @verbose Verbose output
6767
* @migrations Run migration init after creation
68+
* @boxlang Set the language to BoxLang
6869
**/
6970
function run(
7071
name = defaultAppName,
@@ -74,7 +75,8 @@ component extends="coldbox-cli.models.BaseCommand" {
7475
boolean wizard = false,
7576
boolean initWizard = false,
7677
boolean verbose = false,
77-
boolean migrations = false
78+
boolean migrations = false,
79+
boolean boxlang = isBoxLangProject( getCWD() )
7880
){
7981
// Check for wizard argument
8082
if ( arguments.wizard ) {

commands/coldbox/create/bdd.cfc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@ component extends="coldbox-cli.models.BaseCommand" {
1818
function run(
1919
required name,
2020
boolean open = false,
21-
directory = "tests/specs"
21+
directory = "tests/specs",
22+
boolean boxlang = isBoxLangProject( getCWD() )
2223
){
2324
variables.utility.ensureTestBoxModule();
24-
runCommand( "testbox create bdd name=#arguments.name# directory=#arguments.directory# open=#arguments.open#" );
25+
runCommand( "testbox create bdd name=#arguments.name# directory=#arguments.directory# open=#arguments.open# boxlang=#arguments.boxlang#" );
2526
}
2627

2728
}

0 commit comments

Comments
 (0)