Skip to content

Add a ! operator to Validators for checking a false condition - #230

Merged
henryiii merged 1 commit into
CLIUtils:masterfrom
phlptp:Not_validator_support
Feb 20, 2019
Merged

henryiii merged 1 commit into
CLIUtils:masterfrom
phlptp:Not_validator_support

Conversation

@phlptp

@phlptp phlptp commented Feb 20, 2019

Copy link
Copy Markdown
Collaborator

This PR is the first of a series pulled from #229.
If merged this PR will add support for a ! operator on Validators.

For example

app.add_option("--file", filename)->check(!CLI::ExistingFile);

@codecov

codecov Bot commented Feb 20, 2019

Copy link
Copy Markdown

Codecov Report

Merging #230 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #230   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          12     12           
  Lines        2057   2072   +15     
=====================================
+ Hits         2057   2072   +15
Impacted Files Coverage Δ
include/CLI/App.hpp 100% <ø> (ø) ⬆️
include/CLI/Validators.hpp 100% <100%> (ø) ⬆️

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 5e0bb1c...a7d1aef. Read the comment docs.

@codecov

codecov Bot commented Feb 20, 2019 •

Copy link
Copy Markdown

Codecov Report

Merging #230 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #230   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          12     12           
  Lines        2057   2102   +45     
=====================================
+ Hits         2057   2102   +45
Impacted Files Coverage Δ
include/CLI/App.hpp 100% <ø> (ø) ⬆️
include/CLI/Validators.hpp 100% <100%> (ø) ⬆️
include/CLI/Option.hpp 100% <0%> (ø) ⬆️
include/CLI/StringTools.hpp 100% <0%> (ø) ⬆️
include/CLI/TypeTools.hpp 100% <0%> (ø) ⬆️

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 5e0bb1c...04a9c9d. Read the comment docs.

@phlptp
phlptp force-pushed the Not_validator_support branch from a7d1aef to 04a9c9d Compare February 20, 2019 16:17
@henryiii
henryiii merged commit 571fb07 into CLIUtils:master Feb 20, 2019
@phlptp
phlptp deleted the Not_validator_support branch February 21, 2019 15:48
@henryiii henryiii added this to the v1.8 milestone Feb 28, 2019
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