{"id":14235653,"url":"https://github.com/sharkdp/lucid","last_synced_at":"2025-05-10T23:09:30.971Z","repository":{"id":32978731,"uuid":"148036538","full_name":"sharkdp/lucid","owner":"sharkdp","description":"A simple mock-application for programs that work with child processes","archived":false,"fork":false,"pushed_at":"2022-09-02T06:30:22.000Z","size":89,"stargazers_count":91,"open_issues_count":0,"forks_count":3,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-14T08:50:50.000Z","etag":null,"topics":["cli","command-line","debugging","process-control","terminal","testing","tool"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sharkdp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-09-09T15:03:23.000Z","updated_at":"2025-04-05T10:35:26.000Z","dependencies_parsed_at":"2022-08-02T11:52:38.288Z","dependency_job_id":null,"html_url":"https://github.com/sharkdp/lucid","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharkdp%2Flucid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharkdp%2Flucid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharkdp%2Flucid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharkdp%2Flucid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sharkdp","download_url":"https://codeload.github.com/sharkdp/lucid/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253492759,"owners_count":21916974,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","command-line","debugging","process-control","terminal","testing","tool"],"created_at":"2024-08-20T21:02:13.719Z","updated_at":"2025-05-10T23:09:30.952Z","avatar_url":"https://github.com/sharkdp.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"lucid\n=====\n\n[![Build Status](https://travis-ci.org/sharkdp/lucid.svg?branch=master)](https://travis-ci.org/sharkdp/lucid)\n\nA simple mock-application that can be used by other programs that work with child processes.\n\n`lucid` is similar to `sleep`, but has a few additional features that can be helpful\nwhen debugging applications that spawn subprocesses.\n\n## Demo\n\n\u003cimg src=\"https://cdn.rawgit.com/sharkdp/lucid/f15d7387/lucid.svg\" alt=\"lucid demo\"\u003e\n\n\n## Introduction\n\nApplications or scripts that handle child processes need to deal with a lot of different\nscenarios.\n\nThere are really simple processes that successfully terminate after a short period of time:\n``` bash\nlucid 2\n```\n\nOthers also finish after some time, but fail with a **non-zero exit code**:\n``` bash\nlucid 3 --exit-code=1\n```\n\nSome processes just **run forever** (but can be terminated via `SIGINT` or `SIGTERM`):\n``` bash\nlucid\n```\n\nOthers refuse to handle **termination signals** properly and just ignore them:\n``` bash\nlucid 10 --no-interrupt\n```\n\nThere are also processes that choose to **daemonize** themselves immediately:\n``` bash\nlucid 10 --daemon\n```\n\nMany processes print a lot on **standard output**:\n``` bash\nlucid 10 --verbose\n```\n\nWhile some others might generate **error messages**:\n``` bash\nlucid 10 --stderr --verbose\n```\n\n## Usage\n```\nUSAGE:\n    lucid [OPTIONS] [duration]\n\nOPTIONS:\n    -c, --exit-code \u003cCODE\u003e    Terminate with the given exit code [default: 0]\n    -d, --daemon              Daemonize the process after launching\n    -I, --no-interrupt        Do not terminate when receiving SIGINT/SIGTERM signals\n    -p, --prefix \u003cPREFIX\u003e     Prefix all messages with the given string [default: lucid]\n    -v, --verbose             Be noisy\n    -q, --quiet               Do not output anything\n    -e, --stderr              Print all messages to stderr\n    -h, --help                Prints help information\n    -V, --version             Prints version information\n\nARGS:\n    \u003cduration\u003e    Sleep time in seconds. If no duration is given, the process will sleep forever.\n```\n\n## Installation\n\n### On Debian-based systems\n\n``` bash\nwget \"https://github.com/sharkdp/lucid/releases/download/v0.3.0/lucid_0.3.0_amd64.deb\"\nsudo dpkg -i lucid_0.3.0_amd64.deb\n```\n\n### On other distrubutions\n\nCheck out the [release page](https://github.com/sharkdp/lucid/releases) for binary builds.\n\n### Via cargo\n\n```\ncargo install lucid\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsharkdp%2Flucid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsharkdp%2Flucid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsharkdp%2Flucid/lists"}