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 +4 -4
- data/lib/metanorma/cli/command.rb +22 -0
- data/lib/metanorma/cli/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: 63b00b31b0ed45cad17b69f02415c22909fa052eef30800c9f4671c861fe810c
|
|
4
|
+
data.tar.gz: 69a3cc7ae7eac61d990a68ddbe8f585bac5ff13d7766b77e6c57a194fd1bde50
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
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.
|
|
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-
|
|
11
|
+
date: 2025-11-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: metanorma-ietf
|