simple-cli 0.3.13 → 0.4.0

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: 8f4816a86d6b802c97493e9961b17d2a3db19c3f00de186fe59b40b4de53a8cc
4
- data.tar.gz: dc86cba3ab4c96a2c071f6bdf517c5db19e7186caaee9e8962954484139ce1ca
3
+ metadata.gz: dcf0aaedcec401d2a1d7b28d2463aa6b331626c3d75b22b9d8e2c9251c489370
4
+ data.tar.gz: 7c45a6520ea7d7f8812e4f66a6acd2c57c107866527b578c279a06fb58ce0ed7
5
5
  SHA512:
6
- metadata.gz: df10c1919a31273bedac7729af01334743854afceff9feb138daf880424db897fcc006812296334d0ab08036152d4a25ac7f8a88093e1a205d0dbc935f5b1929
7
- data.tar.gz: cc4be6f1c00b1c91664847444f31b3cfd0065df07f85d1d9a4cf8083984cf59f30b0c7aded89da189de319452fda1a063d22b315af4d0b1a62d0999367186875
6
+ metadata.gz: 65eb1d3681b02768d7f0b24805dd8f7c730cdb9cafefb9154b4990607b6d0760d671995fbedb27f36c411b7202a373036e6b09df55bbe6ff293757c1a98a1edf
7
+ data.tar.gz: d67979bd430b4b2d7854e789029ef14dcc42138195d9b1520904a1ddf92bf2bfc1c21feec2bbbca3517ff6122f1a7cab98ea871a4e36d3d61d93ec3478ebf849
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.13
1
+ 0.4.0
@@ -10,10 +10,8 @@ module Simple::CLI
10
10
  _ = verbose
11
11
 
12
12
  action_name = H.command_to_action(command)
13
- Simple::Service.with_context do
14
- flags = extract_flags!(args)
15
- ::Simple::Service.invoke(service, action_name, args: args, flags: flags)
16
- end
13
+ flags = extract_flags!(args)
14
+ ::Simple::Service.invoke(service, action_name, args: args, flags: flags)
17
15
  end
18
16
 
19
17
  private
data/lib/simple/cli.rb CHANGED
@@ -87,6 +87,7 @@ module Simple::CLI
87
87
  # Run service.
88
88
  Runner.run! service, options.command, *args, verbose: options.verbose?
89
89
  rescue ::Simple::Service::ArgumentError
90
+ STDERR.puts "#{$!}\n\n"
90
91
  Helper.help_on_command! service, options.command, verbose: false
91
92
  rescue StandardError => e
92
93
  on_exception(e)
data/simple-cli.gemspec CHANGED
@@ -27,5 +27,5 @@ Gem::Specification.new do |gem|
27
27
  gem.required_ruby_version = '~> 2.3'
28
28
 
29
29
  # optional gems (required by some of the parts)
30
- gem.add_dependency "simple-service", "~> 0.1.5"
30
+ gem.add_dependency "simple-service", "~> 0.2.1"
31
31
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.13
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - radiospiel
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-06-06 00:00:00.000000000 Z
12
+ date: 2022-06-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: simple-service
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: 0.1.5
20
+ version: 0.2.1
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: 0.1.5
27
+ version: 0.2.1
28
28
  description: Simple CLI builder
29
29
  email: eno@radiospiel.org
30
30
  executables: []