Move from Clap Builder to Clap Derive #8

Open
opened 2024-11-22 21:28:05 +00:00 by ryan · 0 comments
Owner

if we use ::<CommandFactory>::command() which is implied by Parser in clap --features derive we can add an automatable, per-coin test suite to check whether each command supports the transfer <amount> <to-address> --from-account [account] format that needs to be shared by all coins.

The builder is turning out to be a bit of a nightmare. For some reason, my value parsers aren't working, and the entire thing is a .unwrap() headache.

Plus, this means making things oneshot will be easier at the risk of the tiniest amount of DRY.

if we use `::<CommandFactory>::command()` which is implied by Parser in `clap --features derive` we can add an automatable, per-coin test suite to check whether each command supports the `transfer <amount> <to-address> --from-account [account]` format that needs to be shared by all coins. The builder is turning out to be a bit of a nightmare. For some reason, my value parsers aren't working, and the entire thing is a `.unwrap()` headache. Plus, this means making things oneshot will be easier at the risk of the tiniest amount of DRY.
ryan added this to the Custody Framework project 2024-11-22 21:28:18 +00:00
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: public/icepick#8
No description provided.