puts a hex.pm package url after published #71

Merged
merged 2 commits into from Dec 15, 2014

Conversation

Projects
None yet
4 participants
@ma2gedev
Contributor

ma2gedev commented Dec 15, 2014

mix hex.docs prints the following after published docs.

Hosted at http://hexdocs.pm/ltsv/0.1.0/

I like this kindness feature :)
So i bring this feature for mix hex.publish.

lib/mix/tasks/hex/publish.ex
@@ -179,6 +179,7 @@ defmodule Mix.Tasks.Hex.Publish do
{code, _} when code in 200..299 ->
Mix.shell.info("")
Mix.shell.info("Published #{meta[:name]} v#{meta[:version]}")
+ Mix.shell.info("Hosted at #{Hex.Util.hex_package_url(meta[:name], meta[:version])}")

This comment has been minimized.

@josevalim

josevalim Dec 15, 2014

Member

Maybe we should just make it one line?

Mix.shell.info("Published at #{Hex.Util.hex_package_url(meta[:name], meta[:version])}")
@josevalim

josevalim Dec 15, 2014

Member

Maybe we should just make it one line?

Mix.shell.info("Published at #{Hex.Util.hex_package_url(meta[:name], meta[:version])}")

This comment has been minimized.

@ma2gedev

ma2gedev Dec 15, 2014

Contributor

That's nice!

@ma2gedev

ma2gedev Dec 15, 2014

Contributor

That's nice!

@josevalim

This comment has been minimized.

Show comment
Hide comment
@josevalim

josevalim Dec 15, 2014

Member

❤️ 💚 💙 💛 💜

Member

josevalim commented Dec 15, 2014

❤️ 💚 💙 💛 💜

@ericmj

This comment has been minimized.

Show comment
Hide comment
@ericmj

ericmj Dec 15, 2014

Member

Good idea, thanks!

Member

ericmj commented Dec 15, 2014

Good idea, thanks!

ericmj added a commit that referenced this pull request Dec 15, 2014

Merge pull request #71 from ma2gedev/puts_hex_package_url
puts a hex.pm package url after published

@ericmj ericmj merged commit c5c3787 into hexpm:master Dec 15, 2014

1 check failed

continuous-integration/travis-ci The Travis CI build failed
Details
@ma2gedev

This comment has been minimized.

Show comment
Hide comment
@ma2gedev

ma2gedev Dec 15, 2014

Contributor

👍
thanks!!

Contributor

ma2gedev commented Dec 15, 2014

👍
thanks!!

@ma2gedev ma2gedev deleted the ma2gedev:puts_hex_package_url branch Dec 16, 2014

@jcspencer

This comment has been minimized.

Show comment
Hide comment
@jcspencer

jcspencer Dec 16, 2014

Contributor

Look's great! ⭐️

Contributor

jcspencer commented Dec 16, 2014

Look's great! ⭐️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment