lirantal/detect-secrets

Enhancement: Support for enabling debug logs via flags

已关闭

#1 创建于 2019年7月5日

 (1 条评论) (0 个反应) (0 位负责人)JavaScript (5 个派生)github user discovery
good first issuestale

仓库指标

星标
 (52 个星标)
PR 合并指标
 (平均合并 6天 13小时) (30 天内合并 4 个 PR)

描述

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

  1. Add a --debug flag to enable debugging
  2. This should enable debug dynamically via debug.enable('detect-secrets')
  3. Discard the flag from process.argv so it doesn't get passed to the actual detect-secrets-hook tool

Describe alternatives you've considered Open to other ideas

贡献者指南