henrikruscon / hyper-statusline

Status Line Plugin for Hyper
MIT License
387 stars 79 forks source link

add zeit now current user/team #49

Closed maxbeatty closed 6 years ago

maxbeatty commented 7 years ago

Zeit makes it really easy to deploy. So easy that sometimes I deploy to the wrong team. Showing the current user or team gives a nice visual queue to the current state of now.

screenshot 2017-05-22 19 42 25
henrikruscon commented 7 years ago

This is really neat! ✌️

I'll look into merging this soon. Sorry for the delay!

goatslacker commented 7 years ago

Just a small suggestion: can this be made into a plugin so that users that don't use zeit now don't need to have this code running with hyper-statusline?

maxbeatty commented 7 years ago

When I was first looking to add this, I, too, was hoping for a more plugin-like approach. I thought my options were to create my own module entirely (duplicating much of this module), create a plugin system here then offer the first plugin (lots of work + awkward contribution), or just get something working to get feedback 😃

I tried to minimize the impact for people not using ZEIT Now by reading .now.json once at startup and then stopping if it doesn't exist (err of readFile will most likely be that the file doesn't exist).

Thankfully Hyper makes it easy to use local versions (forks) so no rush on my end to get this merged. Let's keep discussing to make this something everyone wants.