funbiscuit / embedded-cli

Single-header CLI with history and autocompletion for embedded systems (like Arduino or STM32)
MIT License
242 stars 38 forks source link

Added config option to enable or disable autocomplete #9

Closed asuar078 closed 2 years ago

asuar078 commented 2 years ago

Addition of an enableAutoComplete flag in both the config and impl struct. Early exit from autoComplete function if flag is disabled.

codecov[bot] commented 2 years ago

Codecov Report

Merging #9 (10a91a4) into master (ba62216) will decrease coverage by 0.35%. The diff coverage is 50.00%.

@@            Coverage Diff             @@
##           master       #9      +/-   ##
==========================================
- Coverage   90.75%   90.39%   -0.36%     
==========================================
  Files           1        1              
  Lines         476      479       +3     
  Branches      111      112       +1     
==========================================
+ Hits          432      433       +1     
- Misses         12       13       +1     
- Partials       32       33       +1     
Impacted Files Coverage Δ
lib/src/embedded_cli.c 90.39% <50.00%> (-0.36%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update ba62216...10a91a4. Read the comment docs.

funbiscuit commented 2 years ago

Thanks for your contribution! I've adapted your changes in separate PR #10 since I wanted to add some tests and make some minor changes.