Crates.io | tend |
lib.rs | tend |
version | 0.2.11 |
source | src |
created_at | 2024-04-25 09:37:30.637331 |
updated_at | 2024-05-28 21:40:36.728068 |
description | Quickly spin up/down groups of command-line tasks with automated recovery |
homepage | |
repository | https://github.com/lubomirkurcak/tend |
max_upload_size | |
id | 1219968 |
size | 114,707 |
Download binaries if you are using Windows, macOS or Linux.
You can install tend
using snap
:
sudo snap install tend
Or with winget
:
winget install lubomirkurcak.tend
Or using cargo
:
cargo install tend
Or build from source:
git clone https://github.com/lubomirkurcak/tend
cd tend
cargo build --release
Create a new job called hello
:
tend create hello ping 8.8.8.8
Run hello
:
tend run hello
Press Ctrl-C
to cancel all jobs and exit the program.
List jobs:
tend list
Reconfigure hello
to always restart on completion (even successful):
tend create --overwrite hello --restart=always ping 8.8.8.8
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%'
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"