Skip to content

Commit 97d04fa

Browse files
authored
chore: Update delete-team.js to run in dry run mode by default (boxyhq#1349)
1 parent 9d6b773 commit 97d04fa

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

delete-team.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -48,18 +48,21 @@ init();
4848
async function init() {
4949
if (process.argv.length < 3) {
5050
console.log(
51-
`Usage:
51+
`
52+
Usage:
5253
node delete-team.js [options] <teamId> [teamId]
5354
npm run delete-team -- [options] <teamId> [teamId]
5455
5556
Options:
56-
--dry-run (default): Run the script without deleting anything
57-
--apply: Run the script to apply changes`
57+
--apply: Run the script to apply changes
58+
`
5859
);
5960
console.log(
60-
`Example:
61+
`
62+
Example:
6163
node delete-team.js --apply 01850e43-d1e0-4b92-abe5-271b159ff99b
62-
npm run delete-team -- --apply 01850e43-d1e0-4b92-abe5-271b159ff99b`
64+
npm run delete-team -- --apply 01850e43-d1e0-4b92-abe5-271b159ff99b
65+
`
6366
);
6467
process.exit(1);
6568
} else {
@@ -73,9 +76,6 @@ async function init() {
7376
dryRun = false;
7477
i++;
7578
} else {
76-
i = process.argv.map((a) => a.toLowerCase()).includes('--dry-run')
77-
? i + 1
78-
: i;
7979
console.log('Running in dry-run mode');
8080
dryRun = true;
8181
}

0 commit comments

Comments
 (0)