Commit 60a7ffe
authored
[token-cli] Upgrade to clap-v3 (solana-labs#6376)
* upgrade clap version to `3.2.23`
* remove lifetime parameters from `ArgMatches`
* remove extra lifetime parameters from `Arg`
* remove extra lifetime parameters from `App`
* use `usize` type parameters for `min_values` and `max_values`
* use `char` type parameters for `short` arguments
* update syntax for custom validator functions
* update pattern matching syntax for `subcommand`
* update for new `possible_values` syntax
* allow deprecated input validation for now
* resolve lifetime specifier issue with higher order validator functions
* directly specify positional parameter indices
* remove non-functioning `owner` alias in some subcommands
* remove long names for positional arguments
* remove potential panice from `value_of` and `is_present`
* add custom `signer_from_path` and `signer_from_path_with_config`
* cargo fmt
* remove duplicate addition of args in invalid config test
* use `try_get_one` to parse `compute_unit_price` and `compute_unit_limit`
* hard-code `signer_arg` and `OfflineArgs`
* replace `value_of` function
* revert direct parser for `is_amount` validation1 parent 4ff64ce commit 60a7ffe
File tree
9 files changed
+395
-267
lines changed- token/cli
- src
- tests
9 files changed
+395
-267
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
0 commit comments