avm-tools 0.153.0 → 0.154.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 81478418cd60d82e6c0828d04c2b74fd283329a3b23f47273633e8742513b1d4
4
- data.tar.gz: e96c1b7e099acb3608e91b4862be9f1f05096b653c4abeb2d9f50eef80b8e3ea
3
+ metadata.gz: 52c59965a5479bfb942ba27eee544059b02acdc43c68051d09e63b0e6ee07ef7
4
+ data.tar.gz: 19798b01a4c984c367cb88916510d8209a5123c39c082d591d05eaf99cd2eafd
5
5
  SHA512:
6
- metadata.gz: 137cfa29dcaf64e61ef5191e85b1d65b715684670496fafdc6457463bace52d5999acac8ec075851347640e6e6813b5df42fbb29e21ec05f31509b9b46f86859
7
- data.tar.gz: 427774d492f2d5b06c874c31be4720bec18dc380ca40aa2fafae4163a88e1bbd05bdab7e5c1bbdd75d2461c82084695f03b7fae3fd1e3495330ce7f2670e5873
6
+ metadata.gz: 27ccd30c21a722f7616cd15e3af397dbdb226049224e63e98a1e4f9c618a239451a91dfeb0b820f0cad82223071195bd1aeeef46af429eef1ff9d0859e962f92
7
+ data.tar.gz: 4b376eecb71182705d92c1c3eb10b2961a0cf88b4f774b59b787bbbb60b5b8d3a4cf242485911a944ed59c254a65a2350536ed80c73732bf04e759e290790d14
@@ -0,0 +1,43 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_base0/core_ext'
4
+
5
+ module Avm
6
+ module Tools
7
+ class Runner
8
+ class Instance < ::Avm::Instances::Runner
9
+ class Entry
10
+ runner_with :help, :output do
11
+ desc 'Retorna valor de uma entrada de instância AVM.'
12
+ bool_opt '-d', '--debug'
13
+ pos_arg :envvar_suffix, repeat: true
14
+ end
15
+
16
+ def run
17
+ debug
18
+ run_output
19
+ end
20
+
21
+ def output_content
22
+ parsed.envvar_suffix.map { |entry_key| "#{instance.entry(entry_key).value}\n" }.join
23
+ end
24
+
25
+ def debug
26
+ return unless parsed.debug?
27
+
28
+ parsed.envvar_suffix.map { |entry_key| debug_entry(entry_key) }
29
+ end
30
+
31
+ def debug_entry(entry_key)
32
+ infov 'Entry key', entry_key
33
+ e = instance.entry(entry_key)
34
+ infov ' * Type', e.class
35
+ infov ' * Full path', e.full_path
36
+ infov ' * Found?', e.context_found?
37
+ infov ' * Value', e.value
38
+ end
39
+ end
40
+ end
41
+ end
42
+ end
43
+ end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module Tools
5
- VERSION = '0.153.0'
5
+ VERSION = '0.154.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avm-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.153.0
4
+ version: 0.154.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esquilo Azul Company
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-06-27 00:00:00.000000000 Z
11
+ date: 2023-07-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aranha-parsers
@@ -283,6 +283,7 @@ files:
283
283
  - lib/avm/tools/runner/instance/data/unit/clear.rb
284
284
  - lib/avm/tools/runner/instance/data/unit/dump.rb
285
285
  - lib/avm/tools/runner/instance/data/unit/load.rb
286
+ - lib/avm/tools/runner/instance/entry.rb
286
287
  - lib/avm/tools/runner/instance/info.rb
287
288
  - lib/avm/tools/runner/launcher.rb
288
289
  - lib/avm/tools/runner/launcher/instances.rb