metanorma-cli 1.14.1 → 1.14.3

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: 42500c4cdf24b2d124ab3391d19ec58dbc42ea30fee975570390fc11980a8c1b
4
- data.tar.gz: 3d6660c4270da7a8273112da56907fdca2013c1db96185d7760dfab2fd7c8e80
3
+ metadata.gz: 63b00b31b0ed45cad17b69f02415c22909fa052eef30800c9f4671c861fe810c
4
+ data.tar.gz: 69a3cc7ae7eac61d990a68ddbe8f585bac5ff13d7766b77e6c57a194fd1bde50
5
5
  SHA512:
6
- metadata.gz: e9bcb1f423bd57eb0a40b66346cd88bd214b497614a237c7fb8518474084b61cc9c6760a17b3c9afca069da61bc0ff5fa66e0031e5da49e8a90542d91dfffd20
7
- data.tar.gz: ecc7a5b00c109182d5ca04610ec5c40015d58c12c71836f796a3c7a97392c0e6b56693beb74a041dd34de9f1134b12bdfd704cbc1ca005fec13aa09cb8689b9d
6
+ metadata.gz: 2e4e29929f353759b2209a2c0c0f996ed50110d7872eb95abd0efc63190da3a13dcb4622f537d8a603bc26a7936aa2231589a5fddde2fdb54aee730ae820b633
7
+ data.tar.gz: 4eb056a1a5a2448d4773b6acae9c3b2c2bd104cd3cb64e36c2a907301e15ad3031e1a78b3dc52e1a535a9af66fc60b276ac2a4c08f9ed9c1b3efd3658929a488
@@ -51,6 +51,9 @@ module Metanorma
51
51
  " to nominated directory"
52
52
  option :version, aliases: "-v",
53
53
  desc: "Print version of code (accompanied with -t)"
54
+ option :log_messages, aliases: "-L",
55
+ desc: "Display available log messages " \
56
+ "(accompanied with -t)"
54
57
  option :output_dir, aliases: "-o",
55
58
  desc: "Directory to save compiled files"
56
59
  option :strict, aliases: "-S", type: :boolean,
@@ -75,6 +78,9 @@ module Metanorma
75
78
  elsif options[:version]
76
79
  invoke(:version, [], type: options[:type], format: options[:format])
77
80
 
81
+ elsif options[:log_messages]
82
+ invoke(:log_messages, [], type: options[:type], agree_to_terms: true)
83
+
78
84
  elsif options.keys.size >= 2
79
85
  UI.say("Need to specify a file to process")
80
86
 
@@ -158,6 +164,22 @@ module Metanorma
158
164
  UI.say(e)
159
165
  end
160
166
 
167
+ desc "log_messages", "Display available log messages for a standard type"
168
+ option :type, aliases: "-t", required: false,
169
+ desc: "Type of standard to generate"
170
+
171
+ def log_messages
172
+ if options[:type]
173
+ Metanorma::Cli.load_flavors
174
+ messages = ::Metanorma::Compile.new.extract_log_messages(options[:type])
175
+ UI.say(messages)
176
+ else
177
+ UI.say("Please specify a standard type with -t option")
178
+ end
179
+ rescue NameError => e
180
+ UI.say(e)
181
+ end
182
+
161
183
  desc "list-extensions", "List supported extensions"
162
184
  def list_extensions(type = nil)
163
185
  single_type_extensions(type) || all_type_extensions
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Cli
3
- VERSION = "1.14.1".freeze
3
+ VERSION = "1.14.3".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.14.1
4
+ version: 1.14.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-11-05 00:00:00.000000000 Z
11
+ date: 2025-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-ietf