Skip to content
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

Merged
merged 1 commit into from
Dec 28, 2016

Conversation

milmazz
Copy link
Contributor

@milmazz milmazz commented Dec 26, 2016

Fixes: #305 /cc @josevalim @ericmj

@elixir-bot
Copy link

Ebert has finished reviewing this Pull Request and has found:

  • 1 possible new issue (including those that may have been commented here).

You can see more details about this review at https://ebertapp.io/github/hexpm/hex/pulls/334.

@josevalim
Copy link
Member

@milmazz glad to see you contributing to hex! ❤️ 💚 💙 💛 💜

Copy link
Member

@ericmj ericmj left a 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
Copy link
Member

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.

@milmazz milmazz force-pushed the move_hex.key_to_hex.user branch from b62ed34 to 836c060 Compare December 26, 2016 22:41
@milmazz
Copy link
Contributor Author

milmazz commented Dec 26, 2016

@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
Copy link
Member

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 :).

Copy link
Contributor Author

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.

@milmazz milmazz force-pushed the move_hex.key_to_hex.user branch from 836c060 to 727026f Compare December 26, 2016 22:45
@milmazz milmazz force-pushed the move_hex.key_to_hex.user branch from 727026f to 7e18935 Compare December 26, 2016 22:58
@ericmj ericmj merged commit 608d2b1 into hexpm:master Dec 28, 2016
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.

5 participants