-
Notifications
You must be signed in to change notification settings - Fork 51
Add account remove command #426
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
Conversation
codechain/account_command.rs
Outdated
@@ -111,3 +124,11 @@ fn read_password_and_confirm() -> Option<String> { | |||
None | |||
} | |||
} | |||
|
|||
fn parse_val(val: &str) -> &str { |
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.
Rename parse_val
to read_raw_key
.
codechain/account_command.rs
Outdated
let val = matches.value_of("address").expect("address arg is required"); | ||
parse_val(val) | ||
}; | ||
match Address::from_str(key){ |
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.
Don't forget to run cargo fmt
.
cargo +nightly-2018-05-07 fmt
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.
From today on, cargo +nightly-2018-07-17 fmt
codechain/codechain.yml
Outdated
- remove: | ||
about: remove account | ||
args: | ||
- address: |
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.
Make it a positional argument.
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.
It's the convention to use UPPER_CASE for positional argument's name.
99f7b36
to
db84d0e
Compare
I fixed it!! |
b60083f
to
7392d9f
Compare
7392d9f
to
1bb0877
Compare
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.
LGTM
#420