Skip to content

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

Merged
merged 1 commit into from
Jul 18, 2018

Conversation

junbeomlee
Copy link
Contributor

@sgkim126 sgkim126 requested a review from joojis July 18, 2018 01:00
@@ -111,3 +124,11 @@ fn read_password_and_confirm() -> Option<String> {
None
}
}

fn parse_val(val: &str) -> &str {
Copy link
Member

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.

let val = matches.value_of("address").expect("address arg is required");
parse_val(val)
};
match Address::from_str(key){
Copy link
Member

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

Copy link
Contributor

@joojis joojis Jul 18, 2018

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

- remove:
about: remove account
args:
- address:
Copy link
Member

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.

Copy link
Contributor

@joojis joojis Jul 18, 2018

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.

@junbeomlee junbeomlee force-pushed the account-remove-command branch from 99f7b36 to db84d0e Compare July 18, 2018 07:51
@junbeomlee
Copy link
Contributor Author

I fixed it!!

@junbeomlee junbeomlee force-pushed the account-remove-command branch 3 times, most recently from b60083f to 7392d9f Compare July 18, 2018 08:45
@junbeomlee junbeomlee force-pushed the account-remove-command branch from 7392d9f to 1bb0877 Compare July 18, 2018 09:47
Copy link
Member

@kseo kseo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kseo kseo merged commit 3cf2cae into CodeChain-io:master Jul 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants