# tend [![Build status](https://github.com/lubomirkurcak/tend/workflows/release/badge.svg)](https://github.com/lubomirkurcak/tend/actions) [![Crates.io](https://img.shields.io/crates/v/tend.svg)](https://crates.io/crates/tend) ### Installation **[Download binaries](https://github.com/lubomirkurcak/tend/releases)** if you are using **Windows**, **macOS** or **Linux**. You can install `tend` using `snap`: ```sh sudo snap install tend ``` Or with `winget`: ```sh winget install lubomirkurcak.tend ``` Or using `cargo`: ```sh cargo install tend ``` Or build from source: ```sh git clone https://github.com/lubomirkurcak/tend cd tend cargo build --release ``` ### Usage #### Basic Create a new job called `hello`: ```sh tend create hello ping 8.8.8.8 ``` Run `hello`: ```sh tend run hello ``` Press `Ctrl-C` to cancel all jobs and exit the program. #### Management List jobs: ```sh tend list ``` Reconfigure `hello` to always restart on completion (even successful): ```sh tend create --overwrite hello --restart=always ping 8.8.8.8 ``` #### 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: ```sh tend create "time" sh -- -c 'echo Time: $(date)' ``` to achieve something similar as this on Windows: ```sh tend create "time" cmd -- /C 'echo Time: %TIME%' ``` #### Groups Create a job as a part of a group: ```sh tend create "postgres" --group="dev" kubectl port-forward svc/postgres 5432:5432 ``` Start all jobs from a specific group: ```sh tend run --group "dev" ```