eac_ruby_base0 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/eac_ruby_base0/application.rb +1 -0
- data/lib/eac_ruby_base0/runner.rb +9 -6
- data/lib/eac_ruby_base0/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c33caa20ce5698a75e3cced324d2a33982183fa7ce00e8f1b8e49ce96330c843
|
4
|
+
data.tar.gz: 4bc3cb6a780f50348596e94085073f345ff0e52ee5c5c14f3077ff54edd2dc60
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7253c7709e4d7860d7a58b95fd467ed3d899b7404e6c876337a0ff9fe9e5f62b375690fd2cf8f115e76f3d8fdb3ad45eab70d28082a54eee025469ed065b530e
|
7
|
+
data.tar.gz: 5218e12bbd24b4664370625cfaed4b47eaed2bd46840b0dab23037a51f011772557500a9a895803cc89fcd6c0c290136018e94ce9bb4bd43c902cbf2ea048bab
|
@@ -1,13 +1,16 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'eac_cli/
|
3
|
+
require 'eac_cli/runner_with/help'
|
4
|
+
require 'eac_cli/runner_with/subcommands'
|
4
5
|
require 'eac_ruby_utils/core_ext'
|
5
6
|
|
6
7
|
module EacRubyBase0
|
7
8
|
module Runner
|
8
9
|
require_sub __FILE__
|
10
|
+
enable_console_speaker
|
9
11
|
common_concern do
|
10
|
-
include ::EacCli::
|
12
|
+
include ::EacCli::RunnerWith::Help
|
13
|
+
include ::EacCli::RunnerWith::Subcommands
|
11
14
|
runner_definition do
|
12
15
|
bool_opt '-q', '--quiet', 'Quiet mode.'
|
13
16
|
bool_opt '-I', '--no-input', 'Fail if a input is requested.'
|
@@ -20,9 +23,9 @@ module EacRubyBase0
|
|
20
23
|
|
21
24
|
def run
|
22
25
|
on_speaker_node do |node|
|
23
|
-
node.stderr = ::StringIO.new if
|
24
|
-
node.stdin = FailIfRequestInput.new if
|
25
|
-
if
|
26
|
+
node.stderr = ::StringIO.new if parsed.quiet?
|
27
|
+
node.stdin = FailIfRequestInput.new if parsed.no_input?
|
28
|
+
if parsed.version?
|
26
29
|
show_version
|
27
30
|
else
|
28
31
|
run_with_subcommand
|
@@ -31,7 +34,7 @@ module EacRubyBase0
|
|
31
34
|
end
|
32
35
|
|
33
36
|
def application_version
|
34
|
-
|
37
|
+
runner_context.call(:application).version.to_s
|
35
38
|
end
|
36
39
|
|
37
40
|
def show_version
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eac_ruby_base0
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Put here the authors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: eac_cli
|