mirror of
https://github.com/affaan-m/ECC.git
synced 2026-10-26 18:35:05 +00:00
fix: honor global preview in every guided install entry
Scoped adaptation from PR #3088. Keep the canonical atomic writer and dispatcher; exclude the broader provider/tool changes. Co-authored-by: Geronimo <varungore1@gmail.com>
This commit is contained in:
2 files changed
+52
-1
No files matched your search
@@ -106,7 +106,11 @@ function parseArgs(argv) {
|
||||
if (options.allHarnesses && options.harnesses.length > 0) {
|
||||
throw new Error('--all-harnesses and --harness are mutually exclusive.');
|
||||
}
|
||||
return options;
|
||||
const dryRunEnv = process.env.ECC_DRY_RUN;
|
||||
if (dryRunEnv !== undefined && dryRunEnv !== '0' && dryRunEnv !== '1') {
|
||||
throw new Error('ECC_DRY_RUN must be "1" or "0" when set');
|
||||
}
|
||||
return { ...options, dryRun: options.dryRun || dryRunEnv === '1' };
|
||||
}
|
||||
|
||||
function choicesText(values) {
|
||||
|
||||
Reference in new issue
Block a user