genbox 1.0.22 → 1.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/commands/create.js
CHANGED
|
@@ -162,8 +162,9 @@ exports.createCommand = new commander_1.Command('create')
|
|
|
162
162
|
console.log(chalk_1.default.blue('Resolving configuration...'));
|
|
163
163
|
console.log('');
|
|
164
164
|
let resolved = await profileResolver.resolve(config, createOptions);
|
|
165
|
-
// Interactive branch selection if no branch
|
|
166
|
-
if (
|
|
165
|
+
// Interactive branch selection if no branch options were specified
|
|
166
|
+
// Skip if: -b (existing branch), -f (new branch from source), -n (explicit new branch name), or -y (skip prompts)
|
|
167
|
+
if (!options.branch && !options.fromBranch && !options.newBranch && !options.yes && resolved.repos.length > 0) {
|
|
167
168
|
resolved = await promptForBranchOptions(resolved, config);
|
|
168
169
|
}
|
|
169
170
|
// Display resolved configuration
|
package/dist/commands/rebuild.js
CHANGED
|
@@ -506,8 +506,9 @@ exports.rebuildCommand = new commander_1.Command('rebuild')
|
|
|
506
506
|
console.log(chalk_1.default.blue('Resolving configuration...'));
|
|
507
507
|
console.log('');
|
|
508
508
|
let resolved = await profileResolver.resolve(config, createOptions);
|
|
509
|
-
// Interactive branch selection only if no branch specified and no stored branch
|
|
510
|
-
|
|
509
|
+
// Interactive branch selection only if no branch options specified and no stored branch
|
|
510
|
+
// Skip if: -b, -f, -n, stored branch, or -y
|
|
511
|
+
if (!options.branch && !options.fromBranch && !storedBranch && !options.newBranch && !options.yes && resolved.repos.length > 0) {
|
|
511
512
|
resolved = await promptForBranchOptions(resolved, config);
|
|
512
513
|
}
|
|
513
514
|
// Display what will be rebuilt
|