All Projects → sharkdp → Lucid

sharkdp / Lucid

Licence: other
A simple mock-application for programs that work with child processes

Programming Languages

rust
11053 projects

Projects that are alternatives of or similar to Lucid

Fsq
A tool for querying the file system with a SQL-like language.
Stars: ✭ 60 (+33.33%)
Mutual labels:  cli, terminal, command-line, tool
Pastel
A command-line tool to generate, analyze, convert and manipulate colors
Stars: ✭ 3,742 (+8215.56%)
Mutual labels:  cli, terminal, command-line, tool
Fd
A simple, fast and user-friendly alternative to 'find'
Stars: ✭ 19,851 (+44013.33%)
Mutual labels:  cli, terminal, command-line, tool
Httpcat
httpcat is a simple utility for constructing raw HTTP requests on the command line.
Stars: ✭ 109 (+142.22%)
Mutual labels:  cli, terminal, command-line, debugging
Bat
A cat(1) clone with wings.
Stars: ✭ 30,833 (+68417.78%)
Mutual labels:  cli, terminal, command-line, tool
Laravel Zero
A PHP framework for console artisans
Stars: ✭ 2,821 (+6168.89%)
Mutual labels:  cli, terminal, command-line, tool
Csview
📠 A high performance csv viewer with cjk/emoji support.
Stars: ✭ 208 (+362.22%)
Mutual labels:  cli, terminal, command-line, tool
Teip
Select partial standard input and replace with the result of another command efficiently
Stars: ✭ 280 (+522.22%)
Mutual labels:  cli, terminal, command-line, tool
Wonders
🌈 Declarative JavaScript framework to build command-line applications.
Stars: ✭ 34 (-24.44%)
Mutual labels:  cli, terminal, command-line
Sad
CLI search and replace | Space Age seD
Stars: ✭ 350 (+677.78%)
Mutual labels:  cli, terminal, command-line
Go Prompt
Building powerful interactive prompts in Go, inspired by python-prompt-toolkit.
Stars: ✭ 4,255 (+9355.56%)
Mutual labels:  cli, terminal, command-line
Cmd2
cmd2 - quickly build feature-rich and user-friendly interactive command line applications in Python
Stars: ✭ 342 (+660%)
Mutual labels:  cli, terminal, command-line
Sultan
Sultan: Command and Rule over your Shell
Stars: ✭ 625 (+1288.89%)
Mutual labels:  cli, terminal, command-line
Jtc
JSON processing utility
Stars: ✭ 425 (+844.44%)
Mutual labels:  cli, command-line, tool
Diskus
A minimal, fast alternative to 'du -sh'
Stars: ✭ 674 (+1397.78%)
Mutual labels:  cli, command-line, tool
Tsukae
🧑‍💻📊 Show off your most used shell commands
Stars: ✭ 345 (+666.67%)
Mutual labels:  cli, terminal, command-line
Caporal.js
A full-featured framework for building command line applications (cli) with node.js
Stars: ✭ 3,279 (+7186.67%)
Mutual labels:  cli, terminal, command-line
Nve
Run any command on specific Node.js versions
Stars: ✭ 531 (+1080%)
Mutual labels:  cli, terminal, command-line
Pixterm
Draw images in your ANSI terminal with true color
Stars: ✭ 782 (+1637.78%)
Mutual labels:  cli, terminal, tool
Clifx
Declarative framework for building command line interfaces
Stars: ✭ 900 (+1900%)
Mutual labels:  cli, terminal, command-line

lucid

Build Status

A simple mock-application that can be used by other programs that work with child processes.

lucid is similar to sleep, but has a few additional features that can be helpful when debugging applications that spawn subprocesses.

Demo

lucid demo

Introduction

Applications or scripts that handle child processes need to deal with a lot of different scenarios.

There are really simple processes that successfully terminate after a short period of time:

lucid 2

Others also finish after some time, but fail with a non-zero exit code:

lucid 3 --exit-code=1

Some processes just run forever (but can be terminated via SIGINT or SIGTERM):

lucid

Others refuse to handle termination signals properly and just ignore them:

lucid 10 --no-interrupt

There are also processes that choose to daemonize themselves immediately:

lucid 10 --daemon

Many processes print a lot on standard output:

lucid 10 --verbose

While some others might generate error messages:

lucid 10 --stderr --verbose

Usage

USAGE:
    lucid [OPTIONS] [duration]

OPTIONS:
    -c, --exit-code <CODE>    Terminate with the given exit code [default: 0]
    -d, --daemon              Daemonize the process after launching
    -I, --no-interrupt        Do not terminate when receiving SIGINT/SIGTERM signals
    -p, --prefix <PREFIX>     Prefix all messages with the given string [default: lucid]
    -v, --verbose             Be noisy
    -q, --quiet               Do not output anything
    -e, --stderr              Print all messages to stderr
    -h, --help                Prints help information
    -V, --version             Prints version information

ARGS:
    <duration>    Sleep time in seconds. If no duration is given, the process will sleep forever.

Installation

On Debian-based systems

wget "https://github.com/sharkdp/lucid/releases/download/v0.3.0/lucid_0.3.0_amd64.deb"
sudo dpkg -i lucid_0.3.0_amd64.deb

On other distrubutions

Check out the release page for binary builds.

Via cargo

cargo install lucid
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].