An open API service indexing awesome lists of open source software.

https://github.com/dhth/mult

Run a command multiple times and glance at the outputs
https://github.com/dhth/mult

Last synced: 16 days ago
JSON representation

Run a command multiple times and glance at the outputs

Awesome Lists containing this project

README

        

# mult

[![Build Workflow Status](https://img.shields.io/github/actions/workflow/status/dhth/mult/build.yml?style=flat-square)](https://github.com/dhth/mult/actions/workflows/build.yml)
[![Vulncheck Workflow Status](https://img.shields.io/github/actions/workflow/status/dhth/mult/vulncheck.yml?style=flat-square&label=vulncheck)](https://github.com/dhth/mult/actions/workflows/vulncheck.yml)
[![Latest Release](https://img.shields.io/github/release/dhth/mult.svg?style=flat-square)](https://github.com/dhth/mult/releases/latest)
[![Commits Since Latest Release](https://img.shields.io/github/commits-since/dhth/mult/latest?style=flat-square)](https://github.com/dhth/mult/releases)

Run a command multiple times and glance at the outputs.

```bash
mult command --you=want to run
```


Usage

🧰 Use Cases
---

`mult` can come in handy in a few scenarios, such as:

- Investigating inconsistent responses from a web server
- Checking the outcomes of a flaky test suite
- Running quick and dirty performance/stress tests

💾 Installation
---

**Arch Linux**:

```sh
yay -S mult
```

**homebrew**:

```sh
brew install dhth/tap/mult
```

**go**:

```sh
go install github.com/dhth/mult@latest
```

Or get the binaries directly from a
[release](https://github.com/dhth/mult/releases).

⚡️ Usage
---

### Specify number of runs

```bash
mult \
-n=10 \
yourcommand --with=flags --and=args as usual
```

### Ask for number of runs

```bash
mult \
-i \
yourcommand --with=flags --and=args as usual
```

### Run sequentially

By default, `mult` executes all runs concurrently. Use `-s` for sequentially
execution.

```bash
mult \
-s \
yourcommand --with=flags --and=args as usual
```

### Add delay (in milliseconds) between runs

```bash
mult \
-s \
-delay-ms=500 \
yourcommand --with=flags --and=args as usual
```

### Stop at first failure

```bash
mult \
-s \
-ff \
yourcommand --with=flags --and=args as usual
```

*Note: `-delay-ms`, `-ff` only apply in sequential run mode.*