shelljs / shelljs/shelljs

feat: tail -f option

Open
#986 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature help wanted low priority
Dominant language
JavaScript
Stars
14.4k
Forks
756
PR merge metrics
No merged PRs in 30d

Description

Originally filed in https://github.com/shelljs/shx/issues/172

We should support shell.tail('-f', ...). We would need to "follow" the file as it grows - basically, tail('-f') would never terminate. This isn't super useful in a programmatic context, but would be more useful in shx.

@martin-braun

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the existing shell.tail entry point and the original shx issue linked in the description. Determine how tail currently handles arguments and what completion should mean for a follow operation; done should support shell.tail('-f', ...) with the requested follow behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.