Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dynamic key binding references to help text #289

Merged
merged 3 commits into from
Jul 30, 2023

Conversation

Keyros
Copy link
Contributor

@Keyros Keyros commented Jul 29, 2023

Add dynamic key binding references to help text
The help text in the REPL has been updated to dynamically display the key bindings configured by the user.

Fix for #124

A new test method 'RunAsync_HelpCommand_ShowsPassedKeyBindings' has been added to the ReadEvalPrintLoopTests.cs.
Introduced a new class 'KeyExtensions' that provides static methods to convert key patterns and console modifiers into their string representations.
The help text in the REPL has been updated to dynamically display the key bindings configured by the user.
@codecov
Copy link

codecov bot commented Jul 29, 2023

Codecov Report

Merging #289 (44c18f9) into main (7499a71) will decrease coverage by 0.1%.
The diff coverage is 100.0%.

@@           Coverage Diff           @@
##            main    #289     +/-   ##
=======================================
- Coverage   77.4%   77.3%   -0.1%     
=======================================
  Files         82      83      +1     
  Lines       5545    5564     +19     
  Branches     729     731      +2     
=======================================
+ Hits        4293    4304     +11     
- Misses       985     992      +7     
- Partials     267     268      +1     
Files Changed Coverage Δ
CSharpRepl.Services/Extensions/KeyExtensions.cs 100.0% <100.0%> (ø)
CSharpRepl/ReadEvalPrintLoop.cs 90.9% <100.0%> (+0.1%) ⬆️

... and 1 file with indirect coverage changes

@waf
Copy link
Owner

waf commented Jul 29, 2023

I've done a quick review and this looks great! I'll pull this down tomorrow and do some testing, then merge it if it all looks good.

Thanks for your contribution! I appreciate the high quality code and unit tests.

@waf
Copy link
Owner

waf commented Jul 30, 2023

Thanks again! Testing all went well.

@waf waf merged commit d88d465 into waf:main Jul 30, 2023
3 checks passed
@waf
Copy link
Owner

waf commented Jul 30, 2023

Credited you in the Contributors List. Cheers!

@Keyros Keyros deleted the help-command-result-is-dynamic branch August 6, 2023 00:22
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