Skip to content

fix(cli): add verbose log flag#151

Merged
advaitpatel merged 1 commit into
OWASP:mainfrom
ahfoysal:fix/verbose-log-flag
Jul 9, 2026
Merged

fix(cli): add verbose log flag#151
advaitpatel merged 1 commit into
OWASP:mainfrom
ahfoysal:fix/verbose-log-flag

Conversation

@ahfoysal

@ahfoysal ahfoysal commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Description

Adds -v / --verbose as a shortcut for INFO-level DockSec logs without overriding an existing DOCKSEC_LOG_LEVEL.

Closes #129

Type of Change

  • New feature
  • Documentation update
  • Test update

How Has This Been Tested?

  • Unit tests
  • Manual testing

Test Configuration:

  • Python version: 3.12.13
  • Operating System: macOS
  • DockSec version: 2026.7.3

Checklist

  • Code follows the style guidelines of this project
  • Self-review completed
  • Hard-to-understand areas are commented
  • Documentation updated where needed
  • No new warnings or errors introduced
  • Tests added that prove the fix or feature works
  • All existing tests pass
  • Dependent changes have been merged and published
  • Spelling checked

Screenshots (if applicable)

N/A

Related Issues / PRs


By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.

@github-actions github-actions Bot added documentation Improvements or additions to documentation cli Changes to the CLI entry point tests Changes to the test suite labels Jul 7, 2026

@advaitpatel advaitpatel left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.66667% with 1 line in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (main@69918a4). Learn more about missing BASE report.

Files with missing lines Patch % Lines
docksec/cli.py 75.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #151   +/-   ##
=======================================
  Coverage        ?   78.53%           
=======================================
  Files           ?       26           
  Lines           ?     4057           
  Branches        ?        0           
=======================================
  Hits            ?     3186           
  Misses          ?      871           
  Partials        ?        0           
Flag Coverage Δ
unittests 78.53% <96.66%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@advaitpatel advaitpatel merged commit ec1d8b6 into OWASP:main Jul 9, 2026
12 checks passed
@khldLabs khldLabs mentioned this pull request Jul 10, 2026
21 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli Changes to the CLI entry point documentation Improvements or additions to documentation tests Changes to the test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[GOOD FIRST ISSUE] Add a --verbose/-v flag as a shortcut for DOCKSEC_LOG_LEVEL=INFO

3 participants