cx

Crates.iocx
lib.rscx
version0.1.0
sourcesrc
created_at2020-09-19 05:32:38.012058
updated_at2020-09-19 05:32:38.012058
descriptionA simple command executor utility.
homepagehttps://github.com/tmtmtoo/cx
repositoryhttps://github.com/tmtmtoo/cx
max_upload_size
id290365
size61,455
matsu (tmtmtoo)

documentation

README

cx Test Release

A simple command executor utility.

Command eXecutor

USAGE:
    cx <SUBCOMMAND>

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

SUBCOMMANDS:
    help         Prints this message or the help of the given subcommand(s)
    retry        Retry command execution until successful.
    supervise    Supervise command execution.

Retry

Retry command execution until successful.

USAGE:
    cx retry [OPTIONS] [COMMAND]...

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -c, --count <count>          maximum number of retry counts
    -i, --interval <interval>    execution interval (sec) [default: 0.1]

ARGS:
    <COMMAND>...    command and options

example

$ cx retry -c 3 -i 2 -- your command that may fail && echo succeeded || echo failed

Supervise

Supervise command execution.

USAGE:
    cx supervise [OPTIONS] [COMMAND]...

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -c, --count <count>          re-execution limit counts
    -i, --interval <interval>    execution interval (sec) [default: 0.1]

ARGS:
    <COMMAND>...    command and options

example

$ cx supervise -c 3 -i 2 -- echo abc

TODO

  • feature: parallel
  • build: armv7-unknown-linux-gnueabihf
Commit count: 25

cargo fmt