Adding `heroku logs --follow/-f` as an alias to `heroku logs --tail/-f`
- Dominant language
- TypeScript
- Stars
- 889
- Forks
- 236
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 33
Description
Do you want to request a *feature* or report a *bug*?
-----------------------------------------------------
Feature!
What is the current behavior?
-----------------------------
* `heroku logs --tail/-t` is used to stream the latest logs, while `heroku logs --follow/-f` is not recognized
What is the expected behavior?
------------------------------
* `heroku logs --follow/-f` can be used to stream the latest logs
Background
----------
Sorry for being so pedantic 🥲 This keeps tripping me up so I thought I would open an issue, seems more productive than complaining on Twitter!
I think calling this mode `--tail` is a bit of a misnomer. While it is commonly accepted to call this operation "tailing the logs", the `tail` command itself only shows the last N lines of a file and has little to do with this "live streaming of logs". It's really the `--follow` flag in `tail` that enables this mode, so it seems more appropriate to call it the "follow mode" instead of the "tail mode".
Because the `--follow/-f` flag is what you normally passes to the `tail` command when trying to do this, I almost always end up typing `heroku logs -f` which doesn't work. Since the flag isn't otherwise taken, would it be possible to add that as an additional alias?
Contributor guide
Assessment
This issue has not been assessed yet.