andreas-stuerz / opn-cli

CLI for OPNsense Firewall using API Requests
BSD 2-Clause "Simplified" License
45 stars 8 forks source link

delete int values with an empty string '' #16

Closed andreas-stuerz closed 2 years ago

andreas-stuerz commented 2 years ago

Example: opn-cli haproxy backend update a0d2b182-3228-441a-bfef-ca064a6883ca --healthCheckFall 5

Delete value with empty string by passing '': opn-cli haproxy backend update a0d2b182-3228-441a-bfef-ca064a6883ca --healthCheckFall ''

codecov[bot] commented 2 years ago

Codecov Report

Merging #16 (6c4c875) into main (6fa92cb) will not change coverage. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##              main       #16   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           85        86    +1     
  Lines         3583      3602   +19     
=========================================
+ Hits          3583      3602   +19     
Impacted Files Coverage Δ
opnsense_cli/types/click_option/click_integer.py 100.00% <ø> (ø)
opnsense_cli/commands/plugin/firewall/rule.py 100.00% <100.00%> (ø)
opnsense_cli/commands/plugin/haproxy/acl.py 100.00% <100.00%> (ø)
opnsense_cli/commands/plugin/haproxy/action.py 100.00% <100.00%> (ø)
opnsense_cli/commands/plugin/haproxy/backend.py 100.00% <100.00%> (ø)
opnsense_cli/commands/plugin/haproxy/frontend.py 100.00% <100.00%> (ø)
...pnsense_cli/commands/plugin/haproxy/healthcheck.py 100.00% <100.00%> (ø)
opnsense_cli/commands/plugin/haproxy/resolver.py 100.00% <100.00%> (ø)
opnsense_cli/commands/plugin/haproxy/server.py 100.00% <100.00%> (ø)
...pnsense_cli/types/click_param_type/int_or_empty.py 100.00% <100.00%> (ø)
... and 1 more

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 6fa92cb...6c4c875. Read the comment docs.