kr / hk

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

Change tail command to log. #91

Closed bgentry closed 11 years ago

bgentry commented 11 years ago

Default to streaming output of all application log lines. Providing -n limits the number of lines of output, and also avoids streaming new lines.

Fixes #88. Replaces #90.

bgentry commented 11 years ago

Fixed the help text and the logic. Time to :ship:

ddollar commented 11 years ago

You could check the TTYness of stdout to determine how to behave. If it's a TTY, it should follow indefinitely. If it's not, you should get the last N lines and exit.

kr commented 11 years ago

Both behaviors are reasonable regardless of whether output is a tty. It's simpler to pick one default and let the user choose explicitly.