-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve CLI for owners in bash tests #3388
Conversation
@@ -1118,6 +1119,7 @@ impl Runnable for Job { | |||
println!("{}", outcome.chain_id); | |||
println!("{}", outcome.message_id); | |||
println!("{}", outcome.certificate_hash); | |||
println!("{}", owner); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just by looking at these println
s it's impossible to tell "what is what". Is it so b/c this format is easier to consume programmatically?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's right. Eventually we should have (small?) libraries in non-bash scripting languages for this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could also use JSON but then we need jq
in bash
5934341
to
6ae1bac
Compare
|
||
linera wallet init --faucet $FAUCET_URL | ||
|
||
INFO_1=($(linera wallet request-chain --faucet $FAUCET_URL)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we prefer INFO1 or INFO_1 in general?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm fine with both. No opinions here.
6ae1bac
to
d706a76
Compare
Motivation
Allow removing the hard-coded OWNER variables from README tests
Proposal
Make sure to return the owner on stdout every time the CLI generates a key pair.
Test Plan
I modified the main README file.
Links
Continues #3385