Miserlou / Miserlou/Loop

Add --detach option

Open
#11 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement help wanted
Dominant language
Rust
Stars
697
Forks
28
PR merge metrics
No merged PRs in 30d

Description

This a tricky but important one.

Current behavior is this:

$ loop "date; sleep 5; " --every 2s
Fri Jun 15 16:08:58 EDT 2018
Fri Jun 15 16:09:03 EDT 2018
Fri Jun 15 16:09:08 EDT 2018

I want a way to:

$ loop "date; sleep 5; " --every 2s --detach
Fri Jun 15 16:08:58 EDT 2018
Fri Jun 15 16:09:00 EDT 2018
Fri Jun 15 16:09:02 EDT 2018

If this is incompatible with --until-* that's okay, although obviously that'd be preferred.

Contributor guide

No contributing guide indexed for this repository

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 running the existing loop command with --every and reading the command entry point that handles its scheduling. Define the detached behavior shown in the examples, including how it interacts with --until-* if supported. Done means repeated commands can overlap at the requested interval when --detach is supplied.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.