enparallel-bin 1.0.5 → 1.0.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0ff5900ff0b0c0df9d4b094808816536b86a210e680dcd0f73bcf68e6b8074cc
4
- data.tar.gz: 4d5c618f7cd62127d79320676c0636e286296ee7e41de867033323df3ea83622
3
+ metadata.gz: aa11fab5b6771b73408f872db594cdd1db8a7df8758cd22e6e7611819225ad55
4
+ data.tar.gz: 3f4bc0eaf3b46d3cb0427dda7e1136c3e6cc2863a181fa396fbb7c69ca3ca194
5
5
  SHA512:
6
- metadata.gz: c2a32a1a2c4b19c0a8665b783e77f906d037000a7d9e50eb30f4c182a3e80e03739aa0905660a78dc13c9fef4b1fc099f96cc5eea624bb8699ec7666e7a01d93
7
- data.tar.gz: 285544b0af690012452dd727674dc20298465672eec678f1f3c4cd8b8b5998c6fa982503aed82e24affcbc84151c51b43228c38d5eb9cc613d0b5ed0b6b7bcdf
6
+ metadata.gz: df2f7bdb08f490f9c694a5885fa8b4e1c86c674407b1133b26a541442c6368e034058bebf41dda9f8073c6874dc5ca676881ad1c35fd6294e2b2665e9ab891b3
7
+ data.tar.gz: b4944ff7abd1b54f734958dba5a5686061de55d0b427dae22d48351dedb8b883beca1e341d45e774158fbfd09505f7bcfcea522a0cc0fd04cba611aad64eb692
data/bin/enparallel CHANGED
@@ -91,6 +91,6 @@ end
91
91
  begin
92
92
  Main.run
93
93
  rescue Docopt::Exit => e
94
- puts e.message
95
- exit 1
94
+ puts CLI.usage
95
+ exit 2
96
96
  end
@@ -14,7 +14,14 @@ module Enparallel
14
14
  end
15
15
 
16
16
  def self.parse(argv, stdin)
17
- new(Docopt::docopt(usage, argv: argv, version: VERSION), stdin)
17
+ opts = Docopt::docopt(usage, argv: argv)
18
+
19
+ if opts['--version']
20
+ puts VERSION
21
+ exit
22
+ end
23
+
24
+ new(opts, stdin)
18
25
  end
19
26
 
20
27
  def self.basename
@@ -23,10 +30,11 @@ module Enparallel
23
30
 
24
31
  def self.usage
25
32
  <<~EOF
26
- #{'Usage:'.bold}
33
+ Usage:
27
34
  #{basename} [options] [--] <command>...
35
+ #{basename} ( --version | --help )
28
36
 
29
- #{'Description:'.bold}
37
+ Description:
30
38
  #{basename} operates by reading lines from standard input, and executing
31
39
  <command> once per entry, in parallel.
32
40
 
@@ -41,13 +49,13 @@ module Enparallel
41
49
 
42
50
  seq 1 10 | enparallel -- bash -c "sleep {} && echo Slept for {}"
43
51
 
44
- #{'Options:'.bold}
52
+ Options:
45
53
  -w, --workers <n> Batch into a pool of <n> workers [default: #{workers_default}].
46
54
  -p, --pick <type> Task-picking rule (see "Types") [default: #{pick_default}].
47
55
  -v, --version Version.
48
56
  -h, --help Help.
49
57
 
50
- #{'Types:'.bold}
58
+ Types:
51
59
  sequential The order in which the tasks were queued.
52
60
  random Random order.
53
61
  EOF
@@ -1,3 +1,3 @@
1
1
  module Enparallel
2
- VERSION = "1.0.5"
2
+ VERSION = "1.0.9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enparallel-bin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - crdx
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-20 00:00:00.000000000 Z
11
+ date: 2021-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: require_all
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.0'
19
+ version: '3.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '2.0'
26
+ version: '3.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: colorize
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.17.0
75
+ version: 0.21.0
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 0.17.0
82
+ version: 0.21.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rspec
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -100,16 +100,16 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '12.3'
103
+ version: '13.0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '12.3'
111
- description:
112
- email:
110
+ version: '13.0'
111
+ description:
112
+ email:
113
113
  executables:
114
114
  - enparallel
115
115
  extensions: []
@@ -130,7 +130,7 @@ homepage: https://github.com/crdx/enparallel
130
130
  licenses:
131
131
  - MIT
132
132
  metadata: {}
133
- post_install_message:
133
+ post_install_message:
134
134
  rdoc_options: []
135
135
  require_paths:
136
136
  - lib
@@ -145,8 +145,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
145
145
  - !ruby/object:Gem::Version
146
146
  version: '0'
147
147
  requirements: []
148
- rubygems_version: 3.0.6
149
- signing_key:
148
+ rubygems_version: 3.2.21
149
+ signing_key:
150
150
  specification_version: 4
151
- summary: Run many commands enparallel with a colourful overview
151
+ summary: Parallel command runner with a colourful overview
152
152
  test_files: []