Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/dhth/mult

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

Last synced: about 1 month ago
JSON representation

Run a command multiple times and glance at the outputs

Awesome Lists containing this project

README

        

# mult

✨ Overview
---

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
---

**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.*