cmdp

command
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: ISC Imports: 14 Imported by: 0

README

cmdp

Execute commands in parallel with a progress bar. By default, only stderr is output, use "-v" to see stdout of commands executed. Use "-q" to suppress stderr of commands.

Examples

cat list.txt | cmdp ./app {}

Features

  • Progress bar
  • Replacements strings
    • {#}, job ID. (Same in GNU parallel)
    • {}, full data. (Same in GNU parallel)
    • Directory and file
      • {/}, dirname. ({//} in GNU parallel)
      • {%}, basename. ({/} in GNU parallel)
      • {.}, remove the last extension. (Same in GNU parallel)
      • {:}, remove any extension (Not directly supported in GNU parallel)
    • Combinations
      • {%.}, {%:}, basename without extension

Benchmark

Command Mean [ms] Min [ms] Max [ms] Relative
seq 1 5000 | cmdp echo {} 459.0 ± 5.5 449.4 467.8 1.00
seq 1 5000 | rush "echo {}" 2530.1 ± 197.2 2313.7 2736.7 5.51 ± 0.43
seq 1 5000 | parallel "echo {}" 8061.5 ± 74.0 7959.2 8222.2 17.56 ± 0.27

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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