X Tutup
Skip to content

Add cmd2.Cmd.read_secret method#1605

Merged
tleonhardt merged 2 commits intomainfrom
read-secret
Mar 11, 2026
Merged

Add cmd2.Cmd.read_secret method#1605
tleonhardt merged 2 commits intomainfrom
read-secret

Conversation

@tleonhardt
Copy link
Member

Add cmd2.Cmd.read_secret method.

This method is intended to read things like passwords without displaying them on the screen.

Also:

  • Add test for new method
  • Add command to read_input.lpy example to show use of new method

This method is intended to read things like passwords without displaying them on the screen.
@tleonhardt tleonhardt requested a review from kmvanbrunt as a code owner March 10, 2026 22:05
@codecov
Copy link

codecov bot commented Mar 10, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.53%. Comparing base (48b7ba1) to head (e0d2794).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1605   +/-   ##
=======================================
  Coverage   99.53%   99.53%           
=======================================
  Files          21       21           
  Lines        4743     4746    +3     
=======================================
+ Hits         4721     4724    +3     
  Misses         22       22           
Flag Coverage Δ
unittests 99.53% <100.00%> (+<0.01%) ⬆️

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

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

@tleonhardt tleonhardt mentioned this pull request Mar 10, 2026
20 tasks
@tleonhardt tleonhardt merged commit f038f06 into main Mar 11, 2026
33 checks passed
@tleonhardt tleonhardt deleted the read-secret branch March 11, 2026 03:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

X Tutup