karan / joe

:running: A .gitignore magician in your command line

Home Page:http://karan.github.io/joe/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ping a server and show update notice if there's a new version

karan opened this issue · comments

I like how npm does it.

When the user runs the command, ping some server, and if there's a newer version, show a banner for updating joe.

Hey karan,

I'm looking to get into contributing to open source. I was wondering if I could tackle this issue? I'm just wondering what server I should ping.

Let me know what you think.

Thanks,
Ubadub

@Ubadub, Thanks for wanting to helps. We would need to write a simple HTTP server. I think it would be best if I did this issue, since it isn't a priority right now.

For this issues you don't even need your own HTTP server. All one has to do is check if there is an higher version number available in the json returned by https://api.github.com/repos/karan/joe/tags. Using the name attribute as version number of course.