Closed mFragaBA closed 2 months ago
Did we decide not to do something like
miden-clinet init --rpc devnet.miden.io
miden-clinet init --rpc testnet.miden.io
Did we decide not to do something like
miden-clinet init --rpc devnet.miden.io miden-clinet init --rpc testnet.miden.io
Oh, do you mean we should either add the --deafult
/testnet
flags or --rpc
but not both to the config?
yes, that's what i was thinking - if we have --rpc
we don't really need the default/testnet
flags (we can also have a default for --rpc
flag).
yes, that's what i was thinking - if we have
--rpc
we don't really need thedefault/testnet
flags (we can also have a default for--rpc
flag).
should we also consider the protocol (http/https which I think it's actually gRPC/gRPC + tls) in this flag? Or is it safe to default to http?
should we also consider the protocol (http/https which I think it's actually gRPC/gRPC + tls) in this flag? Or is it safe to default to http?
Unless specified, I would probably default to https
.
should we also consider the protocol (http/https which I think it's actually gRPC/gRPC + tls) in this flag? Or is it safe to default to http?
Unless specified, I would probably default to
https
.
Ok! I added the possibility to specify the protocol but if not provided it defaults to https. Thanks for the input!
I think the overall changes look good to me. The only thing that I would suggest is that I think I'd prefer it if we would not default to making the command interactive in some cases. For example, if we do
miden-client init --rpc testnet.miden.io
I think it would be nice if, for other settings (ie the store) we would set the defaults instead of prompting the user. Or maybe we could provide a--default
flag that sets defaults for anything that was not specified?
I think we could have defaults for all settings (--rpc
included, which could default to testnet.miden.io
).
I think the overall changes look good to me. The only thing that I would suggest is that I think I'd prefer it if we would not default to making the command interactive in some cases. For example, if we do
miden-client init --rpc testnet.miden.io
I think it would be nice if, for other settings (ie the store) we would set the defaults instead of prompting the user. Or maybe we could provide a--default
flag that sets defaults for anything that was not specified?I think we could have defaults for all settings (
--rpc
included, which could default totestnet.miden.io
).
in that case we wouldn't have an interactive init
, right?
in that case we wouldn't have an interactive
init
, right?
Correct!
in that case we wouldn't have an interactive
init
, right?Correct!
Done! Will use default values unless specified (also I'd rather use localhost
as the default instead of testnet.miden.io
)
also I'd rather use
localhost
as the default instead oftestnet.miden.io
I think that's fine.
closes #288