dj8yf0μl
|
962ddb9561
|
feat: propagate doc comments on flags and arguments to --help/-h + structs derive refactor (#26)
the crux of the pr is
0c3ce3af6f
and
912744d436
the rest is some refactoring and splitting big chunks of code into
smaller and nested modules/functions
---
the changes to the logic of derives aren't many and are well summarised
by
the following list of commits with snapshot differences
from the same tests as added to `master` branch in
https://github.com/dj8yfo/interactive-clap/commits/backporting_tests_into_master/
branch:
*
[test_simple_struct](985a46571b/interactive-clap-derive/src/tests/test_simple_struct.rs (L4-L26))
=>
eb4b1243f1
(fragments reorder)
*
[test_simple_struct_with_named_arg](985a46571b/interactive-clap-derive/src/tests/test_simple_struct.rs (L29-L49))
=>
ddb38910a9
(fragments reorder)
*
[test_doc_comments_propagate](985a46571b/interactive-clap-derive/src/tests/test_simple_struct.rs (L151-L208))
=>
6461299b8e
(doc comments propagated, `clap(verbatim_doc_comment)` propagated,
fragments reordered)
*
[test_simple_enum](985a46571b/interactive-clap-derive/src/tests/test_simple_enum.rs (L4-L28))
=> no change
*
[test_simple_enum_with_strum_discriminants](985a46571b/interactive-clap-derive/src/tests/test_simple_enum.rs (L31-L61))
=> no change
* also a bug was found when integrating new functionality:
* [new
test](985a46571b/interactive-clap-derive/src/tests/test_simple_struct.rs (L51-L75))
* [snapshot change in `InteractiveClap`
derive](19b20993c1),
test passing
* [input change for 2nd stage derive of
`ToCliArgs`](29c9aeaf7f)
resulted in [test
failing](https://github.com/near-cli-rs/interactive-clap/actions/runs/13120732036/job/36605779439)
---
second (or 3rd) sub-summary mentions 2 commits
382cc33d61,
3db17e1e90
which made
a testing step automatic and not requiring to manually copy-paste a
fragment
from snapshot generated with first test assertion.
No snapshots changed as result of these latter 2 commits.
---------
Co-authored-by: dj8yf0μl <noreply@nowhere.org>
Co-authored-by: Artur Yurii Korchynskyi <42449190+akorchyn@users.noreply.github.com>
|
2025-02-11 12:50:41 +02:00 |
|
FroVolod
|
6f6796c94b
|
ci: Added clippy to examples (#31)
Resolves #30
---------
Co-authored-by: FroVolod <frol_off@meta.ua>
|
2025-01-07 20:32:49 +02:00 |
|
dj8yf0μl
|
94442d867e
|
feat: add long_vec_multiple_opt attribute (#22)
screenshot from `cargo-near` with
[patched](06fd2569ec)
`interactive-clap` version from pr's fork:

---------
Co-authored-by: dj8yf0μl <noreply@nowhere.org>
|
2024-09-18 17:27:10 +02:00 |
|
FroVolod
|
fc8af6e010
|
refactor: Updated examples:struct_with_flatten (#19)
|
2024-04-23 10:14:46 +02:00 |
|
FroVolod
|
62f08fd6ad
|
feat: Add support for "subargs" (#17)
|
2024-04-21 13:35:25 +02:00 |
|
FroVolod
|
d07d192fc6
|
feat: Added support for "#[interactive_clap(flatten)]" (#15)
Co-authored-by: FroVolod <frol_off@meta.ua>
|
2024-03-25 12:10:47 +01:00 |
|
FroVolod
|
4ce98504ef
|
feat: Added possibility to process optional fields (#13)
Automatic generation of "interactive_clap::FromCli" for structures with
optional fields
---------
Co-authored-by: Vlad Frolov <frolvlad@gmail.com>
|
2024-01-15 12:14:27 +02:00 |
|
FroVolod
|
77cb26c33f
|
fix: named_args/unnamed_args/args_without_attrs conflict (#9)
* fixed
* updated examples/advanced_struct
* refactored InteractiveClapAttrsCliField::new()
* Update interactive-clap-derive/src/derives/to_cli_args/methods/interactive_clap_attrs_cli_field.rs
Co-authored-by: Vlad Frolov <frolvlad@gmail.com>
* refactored InteractiveClapAttrsCliField
---------
Co-authored-by: Vlad Frolov <frolvlad@gmail.com>
|
2023-10-05 10:46:46 +03:00 |
|
Vlad Frolov
|
0af8a4aca7
|
refactor: addressed compiler warnings
|
2023-06-02 22:10:37 +02:00 |
|
FroVolod
|
ec88899e54
|
refactor: Use a custom ResultFromCli to enable Cancel and Back variants and lift CLI args on Ok/Err (#4)
|
2023-04-02 21:24:06 +02:00 |
|
FroVolod
|
cf53b907a3
|
Revert "draft: Result to ResultFromCli"
|
2023-03-01 22:46:13 +02:00 |
|
FroVolod
|
54b154b0f8
|
draft: Result to ResultFromCli
|
2023-03-01 22:32:39 +02:00 |
|
FroVolod
|
95d20ca7b5
|
fixed output_context
|
2023-02-24 09:55:16 +02:00 |
|
Vlad Frolov
|
f8121df39c
|
prepare for publishing to Crates.io
|
2022-12-20 16:05:06 +01:00 |
|
FroVolod
|
8593aba469
|
Changed library "dialoguer" to "inquire" (#3)
* start
* removed "dialoguer"
* modified example files
* modified "Select" for to_cli_args
* modified choose_variant
|
2022-12-13 17:47:50 +02:00 |
|
vova
|
6bd8d91f4a
|
clippy
|
2022-12-06 21:08:49 +02:00 |
|
Vlad Frolov
|
f7ce792eb4
|
feat: Introduced FromCli and ToCliArgs traits to unblock future generics implementation
|
2022-11-20 17:52:06 +02:00 |
|
FroVolod
|
5df97d2621
|
added "back" option
|
2022-09-27 11:23:32 +03:00 |
|
FroVolod
|
bd71ae87e6
|
clap_version = "3.1.17"
|
2022-09-27 11:23:32 +03:00 |
|
FroVolod
|
defa1acf74
|
qweqwe
|
2022-02-24 05:27:13 +02:00 |
|
FroVolod
|
6e3f514728
|
fixed help for using examples
|
2022-02-21 11:26:41 +02:00 |
|
FroVolod
|
99abe1f7f4
|
added help for using examples
|
2022-02-20 21:14:24 +02:00 |
|
FroVolod
|
5f2943af94
|
fixed examles
|
2022-02-18 16:26:50 +02:00 |
|
FroVolod
|
cab24fba62
|
fixed "context"
|
2022-02-11 20:01:46 +02:00 |
|
FroVolod
|
2867c29b85
|
fixed
|
2022-02-11 11:32:29 +02:00 |
|
FroVolod
|
8f63bc60fd
|
add examples
|
2022-02-06 16:01:58 +02:00 |
|