@geolonia/geonicdb-cli 0.6.3 → 0.6.4
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/dist/index.js +8 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -947,6 +947,11 @@ var SCOPES_HELP_NOTES = [
|
|
|
947
947
|
"",
|
|
948
948
|
"write:X implies read:X. admin:X implies both read:X and write:X."
|
|
949
949
|
];
|
|
950
|
+
var API_KEY_SCOPES_HELP_NOTES = [
|
|
951
|
+
"Valid scopes:",
|
|
952
|
+
" read:entities, write:entities, read:subscriptions, write:subscriptions,",
|
|
953
|
+
" read:registrations, write:registrations"
|
|
954
|
+
];
|
|
950
955
|
function resolveOptions(cmd) {
|
|
951
956
|
const opts = cmd.optsWithGlobals();
|
|
952
957
|
const config = loadConfig(opts.profile);
|
|
@@ -1489,7 +1494,7 @@ function addMeApiKeysSubcommand(me) {
|
|
|
1489
1494
|
console.error("API key created.");
|
|
1490
1495
|
})
|
|
1491
1496
|
);
|
|
1492
|
-
addNotes(create,
|
|
1497
|
+
addNotes(create, API_KEY_SCOPES_HELP_NOTES);
|
|
1493
1498
|
addExamples(create, [
|
|
1494
1499
|
{
|
|
1495
1500
|
description: "Create an API key with flags",
|
|
@@ -3756,7 +3761,7 @@ function registerApiKeysCommand(parent) {
|
|
|
3756
3761
|
console.error("API key created.");
|
|
3757
3762
|
})
|
|
3758
3763
|
);
|
|
3759
|
-
addNotes(create,
|
|
3764
|
+
addNotes(create, API_KEY_SCOPES_HELP_NOTES);
|
|
3760
3765
|
addExamples(create, [
|
|
3761
3766
|
{
|
|
3762
3767
|
description: "Create an API key with flags",
|
|
@@ -3797,7 +3802,7 @@ function registerApiKeysCommand(parent) {
|
|
|
3797
3802
|
}
|
|
3798
3803
|
)
|
|
3799
3804
|
);
|
|
3800
|
-
addNotes(update,
|
|
3805
|
+
addNotes(update, API_KEY_SCOPES_HELP_NOTES);
|
|
3801
3806
|
addExamples(update, [
|
|
3802
3807
|
{
|
|
3803
3808
|
description: "Update an API key name",
|