Skip to content

Commit 89c572e

Browse files
committed
Add support for --sequence-length
Fix output order when using --deinterlaced Fixed various race conditions Added test for deinterlace mode Drop support for --ordered CLI argument
1 parent 80d1aa3 commit 89c572e

File tree

9 files changed

+473
-294
lines changed

9 files changed

+473
-294
lines changed

Makefile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
all: bin/coshell
1+
all: bin/coshell test
22

33
bin/coshell:
4-
mkdir -p bin/
5-
CGO_ENABLED=0 go build -o bin/coshell .
4+
CGO_ENABLED=0 go build -ldflags="-s -w" -o bin/coshell .
65
strip bin/coshell
76

87
test:
9-
cd cosh && go test
8+
go test -race -v ./cosh
109

1110
clean:
1211
rm -rf bin/

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# coshell v0.2.2
1+
# coshell v0.2.3
22

33
A no-frills dependency-free replacement for GNU parallel, perfect for initramfs usage.
44

@@ -49,14 +49,14 @@ Output:
4949
test1
5050
test2
5151

52-
## deinterlace option
52+
## sequence length option
5353

54-
Order is not deterministic by default, but with option ``--deinterlace`` or ``-d`` all output will be buffered and afterwards
55-
printed in the same chronological order as process termination.
54+
By specifying a sequence length greater than 1 it is possible to group commands in sequences. Each group of commands will be executed sequentially.
5655

57-
## ordered option
56+
## deinterlace option
5857

59-
This option allows printing ordered output before execution of all commands; it implies `--deinterlace`.
58+
Order is not deterministic by default, but with option ``--deinterlace`` or ``-d`` all output will be buffered and afterwards
59+
printed in the same chronological order as your input.
6060

6161
## shell
6262

@@ -80,4 +80,4 @@ will be adopted as coshell exit code.
8080

8181
## Examples
8282

83-
See [examples/](examples/) directory.
83+
See [examples/](examples/) directory for examples of various use-cases.

0 commit comments

Comments
 (0)