Skip to content

lubomirkurcak/tend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tend

Build status Crates.io

Installation

Download latest release if you are using Windows, macOS or Linux.

If you have cargo you can install tend with it:

cargo install tend

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
+-------+---------+---------+-------------------+------------+---------+
| Job   | Program | Args    | Working Directory | Restart    | Group   |
+-------+---------+---------+-------------------+------------+---------+
| hello | ping    | 8.8.8.8 | C:\repos\tend     | on failure | default |
+-------+---------+---------+-------------------+------------+---------+

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

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

Note

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 dev-pg --group=dev kubectl port-forward svc/postgres 5432:5432

Start all jobs from a specific group:

tend run --group dev

About

Quickly spin up/down groups of command-line tasks with automated recovery

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Languages