-
Notifications
You must be signed in to change notification settings - Fork 189
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
Move hex.key tasks to hex.user #334
Conversation
Ebert has finished reviewing this Pull Request and has found:
You can see more details about this review at https://ebertapp.io/github/hexpm/hex/pulls/334. |
@milmazz glad to see you contributing to hex! ❤️ 💚 💙 💛 💜 |
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.
The new tasks should be mix hex.user key --flags
. For mix hex.key
you can remove all code except a Mix.raise
pointing users to hex.user key
.
|
||
case args do | ||
["register"] -> | ||
case OptionParser.parse(args, switches: @switches) do |
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 prefer to not do this because it means the whole case needs to be changed back if we add flags that can be used at the same time.
b62ed34
to
836c060
Compare
@josevalim Thanks! @ericmj I already made the changes that you requested, please let me know what do you think. |
|
||
Lists all API keys associated with your account. | ||
|
||
mix hex.user key --list-keys |
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.
The final -keys
is redundant :).
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.
@ericmj Good catch! Already fixed.
836c060
to
727026f
Compare
727026f
to
7e18935
Compare
Fixes: #305 /cc @josevalim @ericmj