Closed igamigo closed 4 months ago
Right now we receive all parameters as strings but we should be able to set parsers for custom types (like AccountId), making the code a bit cleaner and the API clearer as well.
How would this interact with #274 and #196?
Closed by #348
What should be done?
There are a couple of things related to clap that we could clean up.
AccountId
), making the code a bit cleaner and the API clearer as well.AccountStorageMode
(one for Clap, one for the Client and themiden-objects
one,AccountStorageType
). This can be a bit confusing. I believe the Client one could be removed and we could just usemiden-objects
's enum (re-exporting if necessary), unless there is a reason I'm missing.How should it be done?
Writing parsers for basic structs that we use on clap (as strings right now)
When is this task done?
When we can define our custom types on Clap commands.
Additional context
No response