Skip to content

Commit

Permalink
✨ Create unique report by default with --all (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
stoe authored Jul 8, 2023
1 parent df8cb14 commit 51fc571
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ const cli = meow(
throw new Error('please provide a valid path for the JSON output')
}

const uniqueFlag = _unique === 'both' ? 'both' : _unique === 'true'
let uniqueFlag = _unique === 'both' ? 'both' : _unique === 'true'
if (![true, false, 'both'].includes(uniqueFlag)) {
throw new Error('please provide a valid value for unique: true, false, both')
}
Expand All @@ -196,6 +196,9 @@ const cli = meow(
secrets = true
uses = true
vars = true

// if all is true, create unique report by default
uniqueFlag = 'both'
}

const report = new Reporting({
Expand Down

0 comments on commit 51fc571

Please sign in to comment.