lirantal/detect-secrets
Enhancement: Support for enabling debug logs via flags
Chiusa
#1 aperta il 5 lug 2019
good first issuestale
Metriche repository
- Star
- (52 stelle)
- Metriche merge PR
- (Merge medio 6g 13h) (4 PR mergiate in 30 g)
Descrizione
Is your feature request related to a problem? Please describe.
If I'm trying to debug how detect-secrets work then I need to run it with DEBUG=detect-secrets which lint-staged isn't friendly with. Instead, I'd want to pass it some flags like --debug in order to enable debugging.
Describe the solution you'd like
- Add a
--debugflag to enable debugging - This should enable debug dynamically via
debug.enable('detect-secrets') - Discard the flag from
process.argvso it doesn't get passed to the actualdetect-secrets-hooktool
Describe alternatives you've considered Open to other ideas