@axway/axway-central-cli 3.1.0-rc.0 → 3.1.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.
- package/README.md +3 -0
- package/dist/commands/get/index.js +4 -11
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -308,6 +308,7 @@ GET OPTIONS:
|
|
|
308
308
|
--attribute [key=value] Attribute in key=value pair format to filter by
|
|
309
309
|
--no-cache Do not use cache when communicating with the server
|
|
310
310
|
--account [value] Override your default account config
|
|
311
|
+
--language [langCode] Show the language detail of the retruned object. One of: * | fr-fr | en-us | de-de | pt-br
|
|
311
312
|
-o, --output [value] Additional output formats. One of: yaml | json
|
|
312
313
|
-q, --query [RSQL query] RSQL-formatted query to search for filters that match specific parameters
|
|
313
314
|
--region [value] Override your region config
|
|
@@ -337,6 +338,8 @@ axway central get envs,apisvc
|
|
|
337
338
|
axway central get env,apisvc commonname -s env1 -o json
|
|
338
339
|
# get apiservice with name "testsvc" in the scope "Environment" with name "testenv"
|
|
339
340
|
axway central get apisvc testsvc -s Environment/testenv
|
|
341
|
+
# get product with name "testproduct" with all available language information and output in json
|
|
342
|
+
axway central get products testproduct --language="*" -o json
|
|
340
343
|
# get assets with titles that start with "a"
|
|
341
344
|
axway central get assets -q "title==a*"
|
|
342
345
|
# get assets with titles that start with a or i
|
|
@@ -80,21 +80,14 @@ const get = exports.get = {
|
|
|
80
80
|
let lang = "";
|
|
81
81
|
let i = 0;
|
|
82
82
|
if (languageExpand.trim() === "*") {
|
|
83
|
-
|
|
84
|
-
if (i < Object.values(_types.LanguageTypes).length - 1) {
|
|
85
|
-
lang = lang + "languages-" + v + ",";
|
|
86
|
-
} else {
|
|
87
|
-
lang = lang + "languages-" + v;
|
|
88
|
-
}
|
|
89
|
-
i++;
|
|
90
|
-
});
|
|
83
|
+
lang = "languages-*";
|
|
91
84
|
} else {
|
|
92
|
-
let langCodeArr = languageExpand.
|
|
85
|
+
let langCodeArr = languageExpand.split(',');
|
|
93
86
|
langCodeArr.forEach(v => {
|
|
94
87
|
if (i < langCodeArr.length - 1) {
|
|
95
|
-
lang = lang + "languages-" + v + ",";
|
|
88
|
+
lang = lang + "languages-" + v.trim() + ",";
|
|
96
89
|
} else {
|
|
97
|
-
lang = lang + "languages-" + v;
|
|
90
|
+
lang = lang + "languages-" + v.trim();
|
|
98
91
|
}
|
|
99
92
|
i++;
|
|
100
93
|
});
|