12 releases

new 0.2.10 May 20, 2024
0.2.9 May 12, 2024
0.2.5 Apr 29, 2024
0.1.0 Apr 25, 2024

#106 in Development tools

Download history 67/week @ 2024-04-21 371/week @ 2024-04-28 315/week @ 2024-05-05 307/week @ 2024-05-12

1,060 downloads per month

MIT/Apache

27KB
669 lines

tend

Build status Crates.io

Installation

Download binaries if you are using Windows, macOS or Linux.

You can install tend using snap:

sudo snap install tend

Or using cargo:

cargo install tend

Or build from source, make sure you have Rust installed:

git clone https://github.com/lubomirkurcak/tend
cd tend
cargo build --release

Usage

Basic

Create a new job called hello:

tend create hello ping 8.8.8.8

Run all jobs:

tend run

Press Ctrl-C to cancel all jobs and exit the program.

Management

List jobs:

tend list

Reconfigure hello to always restart on completion (even successful):

tend create hello ping 8.8.8.8 --restart=always --overwrite

Available Programs

Based on your platform and configuration you will have access to different programs and shells. Make sure the programs are accessible from your current working directory.

For example, you could write this on Linux:

tend create "time" sh -- -c 'echo Time: $(date)'

to achieve something similar as this on Windows:

tend create "time" cmd -- /C 'echo Time: %TIME%'

Groups

Create a job as a part of a group:

tend create "postgres" --group="dev" kubectl port-forward svc/postgres 5432:5432

Start all jobs from a specific group:

tend run --group "dev"

Dependencies

~6–15MB
~172K SLoC