@rockcarver/frodo-cli 2.0.0-11 → 2.0.0-12
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/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- rockcarver/frodo-lib#272: Added new `--variable-type` parameter to `frodo esv variable create` command.
|
|
13
|
+
|
|
14
|
+
## [2.0.0-11] - 2023-07-17
|
|
15
|
+
|
|
10
16
|
## [2.0.0-10] - 2023-07-05
|
|
11
17
|
|
|
12
18
|
## [2.0.0-9] - 2023-07-05
|
|
@@ -1323,7 +1329,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
1323
1329
|
- Fixed problem with adding connection profiles
|
|
1324
1330
|
- Miscellaneous bug fixes
|
|
1325
1331
|
|
|
1326
|
-
[Unreleased]: https://github.com/rockcarver/frodo-cli/compare/v2.0.0-
|
|
1332
|
+
[Unreleased]: https://github.com/rockcarver/frodo-cli/compare/v2.0.0-11...HEAD
|
|
1333
|
+
|
|
1334
|
+
[2.0.0-11]: https://github.com/rockcarver/frodo-cli/compare/v2.0.0-10...v2.0.0-11
|
|
1327
1335
|
|
|
1328
1336
|
[2.0.0-10]: https://github.com/rockcarver/frodo-cli/compare/v2.0.0-9...v2.0.0-10
|
|
1329
1337
|
|
|
@@ -2,17 +2,18 @@ import { FrodoCommand } from '../FrodoCommand';
|
|
|
2
2
|
import { frodo } from '@rockcarver/frodo-lib';
|
|
3
3
|
import { verboseMessage } from '../../utils/Console.js';
|
|
4
4
|
import { createVariable } from '../../ops/VariablesOps';
|
|
5
|
+
import * as s from '../../help/SampleData';
|
|
5
6
|
const {
|
|
6
7
|
getTokens
|
|
7
8
|
} = frodo.login;
|
|
8
9
|
const program = new FrodoCommand('frodo esv variable create');
|
|
9
|
-
program.description('Create variables.').requiredOption('-i, --variable-id <variable-id>', 'Variable id.').requiredOption('--value <value>', '
|
|
10
|
+
program.description('Create variables.').requiredOption('-i, --variable-id <variable-id>', 'Variable id.').requiredOption('--value <value>', 'Variable value.').option('--description [description]', 'Variable description.').option('--variable-type [variable-type]', 'Variable type. Must be one of "string", "list", "array", "object", "bool", "int", or "number".', 'string').addHelpText('after', `Usage Examples:\n` + ` Create an ESV variable using implied default type "string":\n` + ` $ frodo esv variable create --variable-id "esv-trinity-phone" --value "(312)-555-0690" --description "Trinity's phone number." ${s.connId}\n`['brightCyan'] + ` Create an ESV variable of type "array":\n` + ` $ frodo esv variable create --variable-id "esv-nebuchadnezzar-crew" --variable-type array --value '["Morpheus","Trinity","Link","Tank","Dozer","Apoc","Cypher","Mouse","Neo","Switch"]' --description "The crew of the Nebuchadnezzar hovercraft." ${s.connId}\n`['brightCyan'] + ` Create an ESV variable of type "object":\n` + ` $ frodo esv variable create --variable-id "esv-nebuchadnezzar-crew-structure" --variable-type object --value '{"Captain":"Morpheus","FirstMate":"Trinity","Operator":["Link","Tank"],"Medic":"Dozer","Crewmen":["Apoc","Cypher","Mouse","Neo","Switch"]}' --description "The structure of the crew of the Nebuchadnezzar hovercraft." ${s.connId}\n`['brightCyan'] + ` Create an ESV variable of type "int":\n` + ` $ frodo esv variable create --variable-id "esv-neo-age" --variable-type int --value '28' --description "Neo's age in the matrix." ${s.connId}\n`['brightCyan'] + ` Create an ESV variable of type "bool":\n` + ` $ frodo esv variable create --variable-id "esv-blue-piller" --variable-type bool --value 'false' --description "Zion membership criteria." ${s.connId}\n`['brightCyan']).action(
|
|
10
11
|
// implement command logic inside action handler
|
|
11
12
|
async (host, realm, user, password, options, command) => {
|
|
12
13
|
command.handleDefaultArgsAndOpts(host, realm, user, password, options, command);
|
|
13
14
|
if (await getTokens()) {
|
|
14
15
|
verboseMessage('Creating variable...');
|
|
15
|
-
createVariable(options.variableId, options.value, options.description);
|
|
16
|
+
createVariable(options.variableId, options.value, options.description, options.variableType);
|
|
16
17
|
} else {
|
|
17
18
|
process.exitCode = 1;
|
|
18
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"esv-variable-create.js","names":["FrodoCommand","frodo","verboseMessage","createVariable","getTokens","login","program","description","requiredOption","option","action","host","realm","user","password","options","command","handleDefaultArgsAndOpts","variableId","value","process","exitCode","parse"],"sources":["../../../src/cli/esv/esv-variable-create.ts"],"sourcesContent":["import { FrodoCommand } from '../FrodoCommand';\nimport { frodo } from '@rockcarver/frodo-lib';\nimport { verboseMessage } from '../../utils/Console.js';\nimport { createVariable } from '../../ops/VariablesOps';\n\nconst { getTokens } = frodo.login;\n\nconst program = new FrodoCommand('frodo esv variable create');\n\nprogram\n .description('Create variables.')\n .requiredOption('-i, --variable-id <variable-id>', 'Variable id.')\n .requiredOption('--value <value>', '
|
|
1
|
+
{"version":3,"file":"esv-variable-create.js","names":["FrodoCommand","frodo","verboseMessage","createVariable","s","getTokens","login","program","description","requiredOption","option","addHelpText","connId","action","host","realm","user","password","options","command","handleDefaultArgsAndOpts","variableId","value","variableType","process","exitCode","parse"],"sources":["../../../src/cli/esv/esv-variable-create.ts"],"sourcesContent":["import { FrodoCommand } from '../FrodoCommand';\nimport { frodo } from '@rockcarver/frodo-lib';\nimport { verboseMessage } from '../../utils/Console.js';\nimport { createVariable } from '../../ops/VariablesOps';\nimport * as s from '../../help/SampleData';\n\nconst { getTokens } = frodo.login;\n\nconst program = new FrodoCommand('frodo esv variable create');\n\nprogram\n .description('Create variables.')\n .requiredOption('-i, --variable-id <variable-id>', 'Variable id.')\n .requiredOption('--value <value>', 'Variable value.')\n .option('--description [description]', 'Variable description.')\n .option(\n '--variable-type [variable-type]',\n 'Variable type. Must be one of \"string\", \"list\", \"array\", \"object\", \"bool\", \"int\", or \"number\".',\n 'string'\n )\n .addHelpText(\n 'after',\n `Usage Examples:\\n` +\n ` Create an ESV variable using implied default type \"string\":\\n` +\n ` $ frodo esv variable create --variable-id \"esv-trinity-phone\" --value \"(312)-555-0690\" --description \"Trinity's phone number.\" ${s.connId}\\n`[\n 'brightCyan'\n ] +\n ` Create an ESV variable of type \"array\":\\n` +\n ` $ frodo esv variable create --variable-id \"esv-nebuchadnezzar-crew\" --variable-type array --value '[\"Morpheus\",\"Trinity\",\"Link\",\"Tank\",\"Dozer\",\"Apoc\",\"Cypher\",\"Mouse\",\"Neo\",\"Switch\"]' --description \"The crew of the Nebuchadnezzar hovercraft.\" ${s.connId}\\n`[\n 'brightCyan'\n ] +\n ` Create an ESV variable of type \"object\":\\n` +\n ` $ frodo esv variable create --variable-id \"esv-nebuchadnezzar-crew-structure\" --variable-type object --value '{\"Captain\":\"Morpheus\",\"FirstMate\":\"Trinity\",\"Operator\":[\"Link\",\"Tank\"],\"Medic\":\"Dozer\",\"Crewmen\":[\"Apoc\",\"Cypher\",\"Mouse\",\"Neo\",\"Switch\"]}' --description \"The structure of the crew of the Nebuchadnezzar hovercraft.\" ${s.connId}\\n`[\n 'brightCyan'\n ] +\n ` Create an ESV variable of type \"int\":\\n` +\n ` $ frodo esv variable create --variable-id \"esv-neo-age\" --variable-type int --value '28' --description \"Neo's age in the matrix.\" ${s.connId}\\n`[\n 'brightCyan'\n ] +\n ` Create an ESV variable of type \"bool\":\\n` +\n ` $ frodo esv variable create --variable-id \"esv-blue-piller\" --variable-type bool --value 'false' --description \"Zion membership criteria.\" ${s.connId}\\n`[\n 'brightCyan'\n ]\n )\n .action(\n // implement command logic inside action handler\n async (host, realm, user, password, options, command) => {\n command.handleDefaultArgsAndOpts(\n host,\n realm,\n user,\n password,\n options,\n command\n );\n if (await getTokens()) {\n verboseMessage('Creating variable...');\n createVariable(\n options.variableId,\n options.value,\n options.description,\n options.variableType\n );\n } else {\n process.exitCode = 1;\n }\n }\n // end command logic inside action handler\n );\n\nprogram.parse();\n"],"mappings":"AAAA,SAASA,YAAY,QAAQ,iBAAiB;AAC9C,SAASC,K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U,EAClBH,OAAO,CAACI,KAAK,EACbJ,OAAO,CAACV,WAAW,EACnBU,OAAO,CAACK,YACV,CAAC;EACH,CAAC,MAAM;IACLC,OAAO,CAACC,QAAQ,GAAG,CAAC;EACtB;AACF;AACA;AACF,CAAC;;AAEHlB,OAAO,CAACmB,KAAK,CAAC,CAAC"}
|
package/esm/ops/VariablesOps.js
CHANGED
|
@@ -43,14 +43,15 @@ export async function listVariables(long) {
|
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
* Create variable
|
|
46
|
-
* @param {
|
|
47
|
-
* @param {
|
|
48
|
-
* @param {
|
|
46
|
+
* @param {string} variableId variable id
|
|
47
|
+
* @param {string} value variable value
|
|
48
|
+
* @param {string} description variable description
|
|
49
|
+
* @param {VariableExpressionType} type variable type
|
|
49
50
|
*/
|
|
50
|
-
export async function createVariable(variableId, value, description) {
|
|
51
|
+
export async function createVariable(variableId, value, description, type = 'string') {
|
|
51
52
|
showSpinner(`Creating variable ${variableId}...`);
|
|
52
53
|
try {
|
|
53
|
-
await putVariable(variableId, value, description);
|
|
54
|
+
await putVariable(variableId, value, description, type);
|
|
54
55
|
succeedSpinner(`Created variable ${variableId}`);
|
|
55
56
|
} catch (error) {
|
|
56
57
|
failSpinner(`Error: ${error.response.data.code} - ${error.response.data.message}`);
|
|
@@ -59,9 +60,9 @@ export async function createVariable(variableId, value, description) {
|
|
|
59
60
|
|
|
60
61
|
/**
|
|
61
62
|
* Update variable
|
|
62
|
-
* @param {
|
|
63
|
-
* @param {
|
|
64
|
-
* @param {
|
|
63
|
+
* @param {string} variableId variable id
|
|
64
|
+
* @param {string} value variable value
|
|
65
|
+
* @param {string} description variable description
|
|
65
66
|
*/
|
|
66
67
|
export async function updateVariable(variableId, value, description) {
|
|
67
68
|
showSpinner(`Updating variable ${variableId}...`);
|
|
@@ -75,8 +76,8 @@ export async function updateVariable(variableId, value, description) {
|
|
|
75
76
|
|
|
76
77
|
/**
|
|
77
78
|
* Set description of variable
|
|
78
|
-
* @param {
|
|
79
|
-
* @param {
|
|
79
|
+
* @param {string} variableId variable id
|
|
80
|
+
* @param {string} description variable description
|
|
80
81
|
*/
|
|
81
82
|
export async function setVariableDescription(variableId, description) {
|
|
82
83
|
showSpinner(`Setting description of variable ${variableId}...`);
|
|
@@ -90,7 +91,7 @@ export async function setVariableDescription(variableId, description) {
|
|
|
90
91
|
|
|
91
92
|
/**
|
|
92
93
|
* Delete a variable
|
|
93
|
-
* @param {
|
|
94
|
+
* @param {string} variableId variable id
|
|
94
95
|
*/
|
|
95
96
|
export async function deleteVariable(variableId) {
|
|
96
97
|
showSpinner(`Deleting variable ${variableId}...`);
|
|
@@ -127,7 +128,7 @@ export async function deleteVariables() {
|
|
|
127
128
|
|
|
128
129
|
/**
|
|
129
130
|
* Describe a variable
|
|
130
|
-
* @param {
|
|
131
|
+
* @param {string} variableId variable id
|
|
131
132
|
*/
|
|
132
133
|
export async function describeVariable(variableId) {
|
|
133
134
|
const variable = await getVariable(variableId);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VariablesOps.js","names":["frodo","createKeyValueTable","createProgressBar","createTable","failSpinner","printMessage","showSpinner","stopProgressBar","succeedSpinner","updateProgressBar","wordwrap","decodeBase64","utils","resolveUserName","idm","managed","getVariables","getVariable","putVariable","cloud","variable","listVariables","long","variables","result","sort","a","b","_id","localeCompare","error","message","response","data","table","push","valueBase64","loaded","description","lastChangedBy","Date","lastChangeDate","toLocaleString","toString","forEach","secret","createVariable","variableId","value","code","updateVariable","setVariableDescription","deleteVariable","deleteVariables","length","describeVariable"],"sources":["../../src/ops/VariablesOps.ts"],"sourcesContent":["import { frodo } from '@rockcarver/frodo-lib';\nimport {\n createKeyValueTable,\n createProgressBar,\n createTable,\n failSpinner,\n printMessage,\n showSpinner,\n stopProgressBar,\n succeedSpinner,\n updateProgressBar,\n} from '../utils/Console';\nimport wordwrap from './utils/Wordwrap';\n\nconst { decodeBase64 } = frodo.utils;\nconst { resolveUserName } = frodo.idm.managed;\nconst { getVariables, getVariable, putVariable } = frodo.cloud.variable;\n\n/**\n * List variables\n * @param {boolean} long Long version, all the fields\n */\nexport async function listVariables(long) {\n let variables = [];\n try {\n variables = (await getVariables()).result;\n variables.sort((a, b) => a._id.localeCompare(b._id));\n } catch (error) {\n printMessage(`${error.message}`, 'error');\n printMessage(error.response.data, 'error');\n }\n if (long) {\n const table = createTable([\n 'Id'['brightCyan'],\n 'Value'['brightCyan'],\n 'Status'['brightCyan'],\n 'Description'['brightCyan'],\n 'Modifier'['brightCyan'],\n 'Modified'['brightCyan'],\n ]);\n for (const variable of variables) {\n table.push([\n variable._id,\n wordwrap(decodeBase64(variable.valueBase64), 40),\n variable.loaded ? 'loaded'['brightGreen'] : 'unloaded'['brightRed'],\n wordwrap(variable.description, 40),\n // eslint-disable-next-line no-await-in-loop\n await resolveUserName('teammember', variable.lastChangedBy),\n new Date(variable.lastChangeDate).toLocaleString(),\n ]);\n }\n printMessage(table.toString(), 'data');\n } else {\n variables.forEach((secret) => {\n printMessage(secret._id, 'data');\n });\n }\n}\n\n/**\n * Create variable\n * @param {String} variableId variable id\n * @param {String} value variable value\n * @param {String} description variable description\n */\nexport async function createVariable(variableId, value, description) {\n showSpinner(`Creating variable ${variableId}...`);\n try {\n await putVariable(variableId, value, description);\n succeedSpinner(`Created variable ${variableId}`);\n } catch (error) {\n failSpinner(\n `Error: ${error.response.data.code} - ${error.response.data.message}`\n );\n }\n}\n\n/**\n * Update variable\n * @param {String} variableId variable id\n * @param {String} value variable value\n * @param {String} description variable description\n */\nexport async function updateVariable(variableId, value, description) {\n showSpinner(`Updating variable ${variableId}...`);\n try {\n await putVariable(variableId, value, description);\n succeedSpinner(`Updated variable ${variableId}`);\n } catch (error) {\n failSpinner(\n `Error: ${error.response.data.code} - ${error.response.data.message}`\n );\n }\n}\n\n/**\n * Set description of variable\n * @param {String} variableId variable id\n * @param {String} description variable description\n */\nexport async function setVariableDescription(variableId, description) {\n showSpinner(`Setting description of variable ${variableId}...`);\n try {\n await setVariableDescription(variableId, description);\n succeedSpinner(`Set description of variable ${variableId}`);\n } catch (error) {\n failSpinner(\n `Error: ${error.response.data.code} - ${error.response.data.message}`\n );\n }\n}\n\n/**\n * Delete a variable\n * @param {String} variableId variable id\n */\nexport async function deleteVariable(variableId) {\n showSpinner(`Deleting variable ${variableId}...`);\n try {\n await deleteVariable(variableId);\n succeedSpinner(`Deleted variable ${variableId}`);\n } catch (error) {\n failSpinner(\n `Error: ${error.response.data.code} - ${error.response.data.message}`\n );\n }\n}\n\n/**\n * Delete all variables\n */\nexport async function deleteVariables() {\n try {\n const variables = (await getVariables()).result;\n createProgressBar(variables.length, `Deleting variable...`);\n for (const variable of variables) {\n try {\n // eslint-disable-next-line no-await-in-loop\n await deleteVariable(variable._id);\n updateProgressBar(`Deleted variable ${variable._id}`);\n } catch (error) {\n printMessage(\n `Error: ${error.response.data.code} - ${error.response.data.message}`,\n 'error'\n );\n }\n }\n stopProgressBar(`Variables deleted.`);\n } catch (error) {\n stopProgressBar(\n `Error: ${error.response.data.code} - ${error.response.data.message}`\n );\n printMessage(\n `Error: ${error.response.data.code} - ${error.response.data.message}`,\n 'error'\n );\n }\n}\n\n/**\n * Describe a variable\n * @param {String} variableId variable id\n */\nexport async function describeVariable(variableId) {\n const variable = await getVariable(variableId);\n const table = createKeyValueTable();\n table.push(['Name'['brightCyan'], variable._id]);\n table.push([\n 'Value'['brightCyan'],\n wordwrap(decodeBase64(variable.valueBase64), 40),\n ]);\n table.push([\n 'Status'['brightCyan'],\n variable.loaded ? 'loaded'['brightGreen'] : 'unloaded'['brightRed'],\n ]);\n table.push(['Description'['brightCyan'], wordwrap(variable.description, 60)]);\n table.push([\n 'Modified'['brightCyan'],\n new Date(variable.lastChangeDate).toLocaleString(),\n ]);\n table.push([\n 'Modifier'['brightCyan'],\n await resolveUserName('teammember', variable.lastChangedBy),\n ]);\n table.push(['Modifier UUID'['brightCyan'], variable.lastChangedBy]);\n printMessage(table.toString());\n}\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AAO,CAAC,YAAY,CAAC,EACrBzB,QAAQ,CAACC,YAAY,CAACS,QAAQ,CAACgB,WAAW,CAAC,EAAE,EAAE,CAAC,CACjD,CAAC;EACFF,KAAK,CAACC,IAAI,CAAC,CACT,QAAQ,CAAC,YAAY,CAAC,EACtBf,QAAQ,CAACiB,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,GAAG,UAAU,CAAC,WAAW,CAAC,CACpE,CAAC;EACFH,KAAK,CAACC,IAAI,CAAC,CAAC,aAAa,CAAC,YAAY,CAAC,EAAEzB,QAAQ,CAACU,QAAQ,CAACkB,WAAW,EAAE,EAAE,CAAC,CAAC,CAAC;EAC7EJ,KAAK,CAACC,IAAI,CAAC,CACT,UAAU,CAAC,YAAY,CAAC,EACxB,IAAIK,IAAI,CAACpB,QAAQ,CAACqB,cAAc,CAAC,CAACC,cAAc,CAAC,CAAC,CACnD,CAAC;EACFR,KAAK,CAACC,IAAI,CAAC,CACT,UAAU,CAAC,YAAY,CAAC,EACxB,MAAMtB,eAAe,CAAC,YAAY,EAAEO,QAAQ,CAACmB,aAAa,CAAC,CAC5D,CAAC;EACFL,KAAK,CAACC,IAAI,CAAC,CAAC,eAAe,CAAC,YAAY,CAAC,EAAEf,QAAQ,CAACmB,aAAa,CAAC,CAAC;EACnElC,YAAY,CAAC6B,KAAK,CAACS,QAAQ,CAAC,CAAC,CAAC;AAChC"}
|
|
1
|
+
{"version":3,"file":"VariablesOps.js","names":["frodo","createKeyValueTable","createProgressBar","createTable","failSpinner","printMessage","showSpinner","stopProgressBar","succeedSpinner","updateProgressBar","wordwrap","decodeBase64","utils","resolveUserName","idm","managed","getVariables","getVariable","putVariable","cloud","variable","listVariables","long","variables","result","sort","a","b","_id","localeCompare","error","message","response","data","table","push","valueBase64","loaded","description","lastChangedBy","Date","lastChangeDate","toLocaleString","toString","forEach","secret","createVariable","variableId","value","type","code","updateVariable","setVariableDescription","deleteVariable","deleteVariables","length","describeVariable"],"sources":["../../src/ops/VariablesOps.ts"],"sourcesContent":["import { frodo } from '@rockcarver/frodo-lib';\nimport {\n createKeyValueTable,\n createProgressBar,\n createTable,\n failSpinner,\n printMessage,\n showSpinner,\n stopProgressBar,\n succeedSpinner,\n updateProgressBar,\n} from '../utils/Console';\nimport wordwrap from './utils/Wordwrap';\nimport { VariableExpressionType } from '@rockcarver/frodo-lib/types/api/cloud/VariablesApi';\n\nconst { decodeBase64 } = frodo.utils;\nconst { resolveUserName } = frodo.idm.managed;\nconst { getVariables, getVariable, putVariable } = frodo.cloud.variable;\n\n/**\n * List variables\n * @param {boolean} long Long version, all the fields\n */\nexport async function listVariables(long) {\n let variables = [];\n try {\n variables = (await getVariables()).result;\n variables.sort((a, b) => a._id.localeCompare(b._id));\n } catch (error) {\n printMessage(`${error.message}`, 'error');\n printMessage(error.response.data, 'error');\n }\n if (long) {\n const table = createTable([\n 'Id'['brightCyan'],\n 'Value'['brightCyan'],\n 'Status'['brightCyan'],\n 'Description'['brightCyan'],\n 'Modifier'['brightCyan'],\n 'Modified'['brightCyan'],\n ]);\n for (const variable of variables) {\n table.push([\n variable._id,\n wordwrap(decodeBase64(variable.valueBase64), 40),\n variable.loaded ? 'loaded'['brightGreen'] : 'unloaded'['brightRed'],\n wordwrap(variable.description, 40),\n // eslint-disable-next-line no-await-in-loop\n await resolveUserName('teammember', variable.lastChangedBy),\n new Date(variable.lastChangeDate).toLocaleString(),\n ]);\n }\n printMessage(table.toString(), 'data');\n } else {\n variables.forEach((secret) => {\n printMessage(secret._id, 'data');\n });\n }\n}\n\n/**\n * Create variable\n * @param {string} variableId variable id\n * @param {string} value variable value\n * @param {string} description variable description\n * @param {VariableExpressionType} type variable type\n */\nexport async function createVariable(\n variableId: string,\n value: string,\n description: string,\n type: VariableExpressionType = 'string'\n) {\n showSpinner(`Creating variable ${variableId}...`);\n try {\n await putVariable(variableId, value, description, type);\n succeedSpinner(`Created variable ${variableId}`);\n } catch (error) {\n failSpinner(\n `Error: ${error.response.data.code} - ${error.response.data.message}`\n );\n }\n}\n\n/**\n * Update variable\n * @param {string} variableId variable id\n * @param {string} value variable value\n * @param {string} description variable description\n */\nexport async function updateVariable(variableId, value, description) {\n showSpinner(`Updating variable ${variableId}...`);\n try {\n await putVariable(variableId, value, description);\n succeedSpinner(`Updated variable ${variableId}`);\n } catch (error) {\n failSpinner(\n `Error: ${error.response.data.code} - ${error.response.data.message}`\n );\n }\n}\n\n/**\n * Set description of variable\n * @param {string} variableId variable id\n * @param {string} description variable description\n */\nexport async function setVariableDescription(variableId, description) {\n showSpinner(`Setting description of variable ${variableId}...`);\n try {\n await setVariableDescription(variableId, description);\n succeedSpinner(`Set description of variable ${variableId}`);\n } catch (error) {\n failSpinner(\n `Error: ${error.response.data.code} - ${error.response.data.message}`\n );\n }\n}\n\n/**\n * Delete a variable\n * @param {string} variableId variable id\n */\nexport async function deleteVariable(variableId) {\n showSpinner(`Deleting variable ${variableId}...`);\n try {\n await deleteVariable(variableId);\n succeedSpinner(`Deleted variable ${variableId}`);\n } catch (error) {\n failSpinner(\n `Error: ${error.response.data.code} - ${error.response.data.message}`\n );\n }\n}\n\n/**\n * Delete all variables\n */\nexport async function deleteVariables() {\n try {\n const variables = (await getVariables()).result;\n createProgressBar(variables.length, `Deleting variable...`);\n for (const variable of variables) {\n try {\n // eslint-disable-next-line no-await-in-loop\n await deleteVariable(variable._id);\n updateProgressBar(`Deleted variable ${variable._id}`);\n } catch (error) {\n printMessage(\n `Error: ${error.response.data.code} - ${error.response.data.message}`,\n 'error'\n );\n }\n }\n stopProgressBar(`Variables deleted.`);\n } catch (error) {\n stopProgressBar(\n `Error: ${error.response.data.code} - ${error.response.data.message}`\n );\n printMessage(\n `Error: ${error.response.data.code} - ${error.response.data.message}`,\n 'error'\n );\n }\n}\n\n/**\n * Describe a variable\n * @param {string} variableId variable id\n */\nexport async function describeVariable(variableId) {\n const variable = await getVariable(variableId);\n const table = createKeyValueTable();\n table.push(['Name'['brightCyan'], variable._id]);\n table.push([\n 'Value'['brightCyan'],\n wordwrap(decodeBase64(variable.valueBase64), 40),\n ]);\n table.push([\n 'Status'['brightCyan'],\n variable.loaded ? 'loaded'['brightGreen'] : 'unloaded'['brightRed'],\n ]);\n table.push(['Description'['brightCyan'], wordwrap(variable.description, 60)]);\n table.push([\n 'Modified'['brightCyan'],\n new Date(variable.lastChangeDate).toLocaleString(),\n ]);\n table.push([\n 'Modifier'['brightCyan'],\n await resolveUserName('teammember', variable.lastChangedBy),\n ]);\n table.push(['Modifier UUID'['brightCyan'], variable.lastChangedBy]);\n printMessage(table.toString());\n}\n"],"mappings":"AAAA,SAASA,KAAK,QAAQ,uBAAuB;AAC7C,SACEC,mBAAmB,EACnBC,iBAAiB,EACjBC,WAAW,EACXC,WAAW,EACXC,YAAY,EACZC,WAAW,EACXC,eAAe,EACfC,cAAc,EACdC,iBAAiB,QACZ,kBAAkB;AACzB,OAAOC,QAAQ,MAAM,kBAAkB;AAGvC,MAAM;EAAEC;AAAa,CAAC,GAAGX,KAAK,CAACY,KAAK;AACpC,MAAM;EAAEC;AAAgB,CAAC,GAAGb,KAAK,CAACc,GAAG,CAACC,OAAO;AAC7C,MAAM;EAAEC,YAAY;EAAEC,WAAW;EAAEC;AAAY,CAAC,GAAGlB,KAAK,CAACmB,KAAK,CAACC,QAAQ;;AAEvE;AACA;AACA;AACA;AACA,OAAO,eAAeC,aAAaA,CAACC,IAAI,EAAE;EACxC,IAAIC,SAAS,GAAG,EAAE;EAClB,IAAI;IACFA,SAAS,GAAG,CAAC,MAAMP,YAAY,CAAC,CAAC,EAAEQ,MAAM;IACzCD,SAAS,CAACE,IAAI,CAAC,CAACC,CAAC,EAAEC,CAAC,KAAKD,CAAC,CAACE,GAAG,CAACC,aAAa,CAACF,CAAC,CAACC,GAAG,CAAC,CAAC;EACtD,CAAC,CAAC,OAAOE,KAAK,EAAE;IACdzB,YAAY,CAAE,GAAEyB,KAAK,CAACC,OAAQ,EAAC,EAAE,OAAO,CAAC;IACzC1B,YAAY,CAACyB,KAAK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CAAC,CAAC,CAAC;AAChC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rockcarver/frodo-cli",
|
|
3
|
-
"version": "2.0.0-
|
|
3
|
+
"version": "2.0.0-12",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A command line interface to manage ForgeRock Identity Cloud tenants, ForgeOps deployments, and classic deployments.",
|
|
6
6
|
"keywords": [
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
]
|
|
105
105
|
},
|
|
106
106
|
"dependencies": {
|
|
107
|
-
"@rockcarver/frodo-lib": "2.0.0-
|
|
107
|
+
"@rockcarver/frodo-lib": "2.0.0-18",
|
|
108
108
|
"chokidar": "^3.5.3",
|
|
109
109
|
"cli-progress": "^3.11.2",
|
|
110
110
|
"cli-table3": "^0.6.3",
|