mult

command module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2025 License: MIT Imports: 3 Imported by: 0

README

mult

Build Status Vulnerability Check Latest release Commits since latest release

Run a command multiple times and glance at the outputs.

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:

brew install dhth/tap/mult

go:

go install github.com/dhth/mult@latest

Arch Linux:

yay -S mult

Or get the binaries directly from a release.

⚡️ Usage

Usage: mult [flags]

Flags:
  -F    whether to stop after first failure
  -S    whether to stop after first success
  -d int
        time (in ms) to sleep for between runs
  -i    accept flag values interactively (takes precendence over -n)
  -n int
        number of times to run the command (default 5)
  -s    whether to invoke the command sequentially

Specify number of runs

mult -n=10 yourcommand

Ask for number of runs

mult -i yourcommand

Run sequentially

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

mult -s yourcommand

Add delay (in milliseconds) between runs

mult -s -d=500 yourcommand

Stop at first failure

mult -s -F yourcommand

Stop at first success

mult -s -S yourcommand

Note: -d, -F, -S only apply in sequential run mode.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
cmd
ui

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL