kr / hk

Fast Heroku client
https://hk.heroku.com/
77 stars 6 forks source link

Always follow on tails #90

Closed bgentry closed 10 years ago

bgentry commented 10 years ago

Fixes #88.

I opted not to include a "don't tail" flag for now. Do we have any reason to believe this is common?

The only real use case I could think of is if you're doing something with the output in an automated script or something.

freeformz commented 10 years ago

If we are going to continue to call the command tail, then I vote for mirroring unix's tail command as closely as possible. This feels more right and is the path of least surprise IMO.

msakrejda commented 10 years ago

I agree with Ed, but a perverse recommended workaround to not tail if this makes it in could just be to have the use pipe tails to head.

kr commented 10 years ago

If flag -n still works as advertised after this patch, that would be sufficient to "not follow".

kr commented 10 years ago

FWIW I don't feel strongly about keeping the name tail. It's already very different from unix tail, since you can't specify what it is you're tailing.

bgentry commented 10 years ago

I do actually use the -n flag a decent amount to get back either a bunch of logs or very few logs. Not sure about others though. But the -n flag doesn't work as expected when filters are involved :disappointed:

bgentry commented 10 years ago

Replaced by #91.