clap/clap_generate/tests
Roland Fredenhagen 5580e8c465
ArgValue builder (#2758)
* feat(arg_value): ArgValue can be used for possible_values

Through the ArgValue it is possible:

* `hide` possible_values from showing in completion, help and validation
* add `about` to possible_values in completion

* Resolved a few change-requests by epage

* make clippy happy

* add ArgValue::get_visible_value

* remove verbose destructering

* rename ArgValue::get_hidden to ArgValue::is_hidden

* add test for help output of hidden ArgValues

* Documentation for ArgValue

There is an issue that required to implement From<&ArgValue> for
ArgValue. We should probably find a solution without that.

* fix requested changes by epage

* fix formatting

* add deref in possible_values call to remove From<&&str>

* make clippy happy

* use copied() instad of map(|v|*v)

* Finishing up for merge, hopefully

* changes requested by pksunkara
2021-09-19 10:29:09 +00:00
..
completions fix(generate): Better subcommand completion in fish (#2726) 2021-09-08 15:32:26 +01:00
generate_completions.rs tests(clap_generate): zsh completion generation bug 2020-10-30 21:23:35 +01:00
value_hints.rs ArgValue builder (#2758) 2021-09-19 10:29:09 +00:00
version-numbers.rs Refactor clap_generate 2020-02-07 07:52:04 +01:00